Everything you should know about the Dependency Management for PHP
$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composerAlternatively you can use the executable composer.phar.
$ composer require tobymaxham/url-shortener... will create a composer.json file ...
{
"require": {
"tobymaxham/url-shortener": "^1.1"
}
}... also all required dependencies will be installed under /vendor/.