Saturday, August 31, 2013

Set up Composer (PHP dependency manager) on OSX

Composer is a tool for dependency management in PHP. It allows you to declare the dependent libraries your project needs and it will install them in your project for you.

Here is how to install it on OSX.

1. Go to the Symfony/, which is a directory where we will put the composer.phar:
$ cd ../Symfony
2. Download the composer.phar:
$ curl -s http://getcomposer.org/installer | php
3. Generates composer.phar (a PHP executable). Make sure it works fine:
$ php composer.phar

No comments:

Post a Comment