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:

# Download composer as explained in http://getcomposer.org/download
> curl -s https://getcomposer.org/installer | php
# Create a new Symfony2 project
> composer.phar create-project symfony/framework-standard-edition directory
view raw gistfile1.sh hosted with ❤ by GitHub

Now you have an empty symfony2 project to start coding inside directory.
Go and have some fun! :)

No comments:

Post a Comment