October 17, 2012

Symfony2: How to start a new project easily with Composer

Composer is the best thing it happened to the PHP community since PHP 5.3 was released: PHP project dependencies made easy. It's worth the little time you must spent to learn how to use it. I can't recommend it enough.

How can I use this jewel to start a Symfony2 Standard Edition project? Have a look at how easy it is:

Symfony2: Repositories in DIC

Easy recipe to define a Doctrine repository in your Dependency Injection Container: