执行命令
composer require squizlabs/php_codesniffer --dev
报错:
[InvalidArgumentException]
Could not find package squizlabs/php_codesniffer.
Did you mean one of these?
squizlabs/php_codesniffer
squizlabs/php_codesniffer_tests
memaw/phpcs
解决:
更新Composer配置源
composer config -g repo.packagist composer https://packagist.org
其他
https://packagist.laravel-china.org
https://packagist.phpcomposer.com
https://packagist.org