2.Composer(PHP依赖关系管理工具)的安装步骤(openSUSE Tumbleweed)

sudo zypper in php8-phar
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
sudo mv composer.phar /usr/local/bin/composer
composer --version
composer self-update
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

原创文章,作者:huoxiaoqiang,如若转载,请注明出处:https://www.huoxiaoqiang.com/php/phpenv/3413.html

发表评论

邮箱地址不会被公开。 必填项已用*标注