Skip to content

Instantly share code, notes, and snippets.

Blixit blixit

Block or report user

Report or block blixit

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@blixit
blixit / readme.md
Last active Jan 29, 2018
Send notification with relief_applications/notifications-bundle
View readme.md

ReliefApps Notifications Bundle

Installation

composer require relief_applications/notifications-bundle

Usage without symfony

@blixit
blixit / README.md
Created Nov 9, 2017 — forked from tjamps/README.md
Basic RESTful API with Symfony 2 + FOSRestBundle (JSON format only) + FOSUserBundle + FOSOauthServerBundle
View README.md

Basic RESTful API with Symfony 2 + FOSRestBundle (JSON format only) + FOSUserBundle + FOSOauthServerBundle

The API we are creating in this gist will follow these rules :

  • The API only returns JSON responses
  • All API routes require authentication
  • Authentication is handled via OAuth2 with password Grant Type only (no need for Authorization pages and such).
  • API versioning is managed via a subdomain (e.g. v1.api.example.com)

The API will be written in PHP with the Symfony 2 framework. The following SF2 bundles are used :

@blixit
blixit / MSFBundle.md
Last active May 20, 2017
Msf Bundle : An easy way to implement Multi Step Forms with symfony
View MSFBundle.md

MSF Bundle (Symfony 3)

During a simple project, I found that there were not any bundle providing the Multiple Step Form feature. Actually, I found one, https://github.com/craue/CraueFormFlowBundle . But for me, this bundle focuses too much on the Forms themselves, which was not relevant to me. For instance, I don't use to handle Form Event. Then, I came to the idea I could create a bundle which let developper interact with each form separately and then use a little well-configured system to manage the set of forms, the transitions between them, hydratation, ...

Therefore I created the MSFBundle. It's a little one with currently 5 or 6 classes and works out as a service. Its usage is very similar to form themselves to reduce learning time.

Bonus : with this system, it's easy to manage transitions even between MSF. You just have to configure actions at each step.

You can’t perform that action at this time.