-
Notifications
You must be signed in to change notification settings - Fork 0
Composer
khensolomon edited this page May 9, 2018
·
3 revisions
If Composer available just download the letId composer and run composer update
Install composer using PHP... more information about installer and packages...
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php
Setup composer by executing composer-setup.php
php composer-setup.php --filename=composer
Delete composer-setup.php because we don't need anymore..
php -r "unlink('composer-setup.php');"
Now, generate autoload and update packages using one of the following:
php composer update
php composer.phar update
composer update
Autoload dump/update using one of the following:
php composer dump-autoload -o
php composer.phar dump-autoload -o
composer dump-autoload -o
Creating project using one of the following:
php composer init
php composer.phar init
composer init
<?php
php -r '$f=json_decode(file_get_contents($argv[1]), true);$f["autoload"]["psr-4"][$argv[2]] = $argv[3]; file_put_contents($argv[1], json_encode($f, 448)."\n");' composer.json app\\ config/
curl -s http://getcomposer.org/installer | php
php -r "readfile('https://getcomposer.org/installer');" | php
emoji icon indicate
- Date/Time 📅
- Callable child Method 〰️
- Core 💫
- Todo 💥
- Need to be improved/fixed 🔨
- Stop 💤
- New 💡
- Note 📌
- Updated/Improved/Fixed 🌱
- Version/Target 🚩
- Changed/Modified: 🔪