Downloading and Installing Composer
1 |
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer |
Let’s testing
1 |
composer --version |
1 2 3 |
cd /var/www/odenktools.com composer require mashape/unirest-php |
Check your project’s directory now, it will contain two new files and one directory
- composer.json
- composer.lock
- vendor directory