Instalar Composer
13/10/2016
|Por Yoné Rocha
Estando en la raíz del proyecto:
Shell
1 2 3 4 5 6 7 | php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" php composer-setup.php php -r "unlink('composer-setup.php');" |
Instalar los vendors del proyecto:
Shell
1 | php composer.phar install |
Evitar errores de límite de memoria:
Shell
1 | php -d memory_limit=-1 ./composer.phar update |
Actualizar el propio composer:
Shell
1 | php ./composer.phar self-update |
Fuente: getComposer.org