Skip to content

Instantly share code, notes, and snippets.

View blixit's full-sized avatar

Blixit blixit

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

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.

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

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 / readme.md
Last active January 29, 2018 14:29
Send notification with relief_applications/notifications-bundle

ReliefApps Notifications Bundle

Installation

composer require relief_applications/notifications-bundle

Usage without symfony