티스토리 뷰

##composer 설치

curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin/
//curl이 없을 경우 php cli로 실행
php -r "readfile('https://getcomposer.org/installer');" | php -- --install-dir=/usr/local/bin/
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'e21205b207c3ff031906575712edab6f13eb0b361f2085f1f1237b7126d785e826a450292b6cfd1d64d92e6563bbde02') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"

##composer update

composer self-upadte

2023.07 기준 v2.5.8 stable

 

https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies

댓글