Quick Guides: #1 - Installing PHP Composer

Want to install and use PHP Composer on your Ubuntu machine?

Simply run:

curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

You can now use the command, composer install in a directory that has a composer.json file.

Want to know what a composer.json file should look like?

See below for an example:

{ "require": { "symfony/class-loader": "v2.4.1", "symfony/yaml": "v2.4.1" } }

Voila! Another guide decrapified.


© 2012-2017