参考:http://www.blogdaren.com/post-2536.html
问题背景:
- # composer require xxx/yyy
结果报错:
- [InvalidArgumentException]
- Could not find a version of package xxx/yyy matching your minimum-stability (stable).Require it with an explicit version constrai
- nt allowing its desired stability.
解决方案:
1、新建 composer.json
2、新增如下内容:
- {
- "require":{
- "xxx/yyy":"dev-master"
- }
- }
- # composer install