使用composer安装php插件时候错误提示:
The "https://packagist.laravel-china.org/packages.json" file could not be downloaded: Peer certificate CN=*.phphub.org' did not match expected CN=packagist.laravel-china.org' Failed to enable crypto failed to open stream: operation failed https://packagist.laravel-china.org could not be fully loaded, package information was loaded from the local cache and may be out of date
解决方式(源连接失效的缘故): 配置更换全局域即可
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
取消配置:
composer config -g --unset repos.packagist