September 2016
Intermediate to advanced
270 pages
5h 16m
English
Composer is a dependency manager for PHP, strongly inspired by Node's NPM and Bundler. It has now become integral to multiple PHP projects, including Laravel and Symfony. Why it is useful for us, however, is that it contains autoload functionality that is compliant with the PSR-0 and PSR-4 standards. You can download and install Composer from http://getcomposer.org.
In order to install Composer globally on Mac OS X or Linux, first you can run the installer:
curl -sS https://getcomposer.org/installer | php
And then you can move Composer to install it globally:
mv composer.phar /usr/local/bin/composer
If the command preceding fails due to a permissions issue, rerun the command except putting sudo ...
Read now
Unlock full access