前端之家收集整理的这篇文章主要介绍了
Ubuntu下 phpcs 和 composer 全局安装,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
>wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v1.11.6/PHP-cs-fixer.phar -O PHP-cs-fixer
or
curl -L https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v1.11.6/PHP-cs-fixer.phar -o PHP-cs-fixer
sudo chmod a+x PHP-cs-fixer
sudo mv PHP-cs-fixer /usr/local/bin/PHP-cs-fixer
sudo PHP-cs-fixer self-update
PHP-cs-fixer fix
composer全局安装
PHP -r "copy('https://getcomposer.org/installer','composer-setup.PHP');"
PHP composer-setup.PHP
PHP -r "unlink('composer-setup.PHP');"
composer selfupdate
composer config -g repo.packagist composer https://packagist.PHPcomposer.com
composer self-update --rollback
原文链接:https://www.f2er.com/ubuntu/353011.html