Blog Posts

Silex - a grand micro framework for PHP

In a recent project, my team needed a micro backend for a small educational simulation game which was mostly client-side code. The backend responsibilities was to start a game, persist its state and synchronize players along the various phases of the game.

There were so little backend tasks involved that the primary discussion lead to a 'no framework' approach. But after a great presentation by Igor Wiedler at Liip Zurich, we decided to use the Silex PHP micro-framework for our minimal backend needs.

In a single file of 200 lines of code (comments and spaces included), we wrote controllers for 9 distinct routes, benefited from the DoctrineExtension to connect to the DB (no ORM) and from the TwigExtension for templating.

It was fun, fast and allowed us to concentrate on the real challenges of the project.

The main difficulty we encountered with Silex was due to its spartan documentation, which, since then, has been updated to include documentation on extensions.

Thanks to our fellow liipers who proposed and convinced us to use this grand micro framework!

Related Entries:
- Integrate Varnish and Nginx into PHP applications with FOSHttpCache
- Tips & tricks for capifony deployment
- Updating old Symfony2 CMF projects
- PHP family meeting at FrOSCon
- New in Symfony 2.4: Show logs in console

About the author

Comments [3]

sebs, 07.05.2011 02:15 CET

Nice Framework, loved the idea from the first moment.
No wonder, I am a express.js User ;)

Luis, 28.05.2011 06:56 CET

can you share more details on your app?

it would be great to take a peek at it


Benoît Pointet, 30.05.2011 08:36 CET

We unfortunately cannot disclose the code of this app. There's however a couple of good app examples and tutorials on the web, enjoy!

Add a comment

Your email adress will never be published. Comment spam will be deleted!