composer require topthink/think-worker
Authentication required (packagist.phpcomposer.com): Username:
这几天操作composer,一直要求输入账号密码。百度后发现是
https://packagist.laravel-china.org 镜像挂了。需要换一个镜像
阿里云镜像:https://developer.aliyun.com/composer
然后修改composer.json 文件中 url 参数
"repositories": { "packagist": { "type": "composer", "url": "https://mirrors.aliyun.com/composer/" } }