Быстро устанавливаем composer

302
публикации

Устанавливать будем в свой домашний каталог.


cd ~

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;"

mkdir bin

php composer-setup.php --install-dir=bin --filename=composer

echo $PATH

echo 'export PATH="$PATH:$HOME/bin"' >> ~/.bashrc

source ~/.bashrc

composer

Tags
#archive 62 #capsulecms 30 #featurerequest 26 #linux 22 #php 13 #windows 12 #phpstorm 11 #eclipse 8 #font 6 #nginx 5 #bug 5 #oldsite 4 #iosevka 3 #SEO 3 #nano 2 #antipattern 2 #quotes 2 #Цитаты 2 #mvc 2 #pdf 1 #algorithm 1 #composer 1 #copypaste 1 #sourcetree 1 #singleton 1 #mysql 1 #meld 1 #pattern 1 #postgresql 1 #debian 1 #ideas 1 #strtok 1 #qt 1 #capsulecmsv1 1 #netbeans 1 #puntoswitcher 1 #movie 1 #mariadb 1 #foobar 1 #apache 1 #git 1 #pidgin 1 #ssh 1 #curl 1 #datetimepicker 1 #https 1 #rsync 1 #bootstrap 1 #cmd 1 #iconv 1 #cms 1 #skype 1