If you do not have curl installed
apt-get install curl
Copy folling commands to your terminal for the current user
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
php composer-setup.php | |
php -r "unlink('composer-setup.php');" | |
sudo mv composer.phar /usr/local/bin/ | |
sed -i "$ aalias composer='php /usr/local/bin/composer.phar' " ~/.bashrc |
thats it!
Now composer works everywhere on your console
- open console and type:
composer
Keine Kommentare:
Kommentar veröffentlichen