composer 使用技巧搜集

阅读数: 957 2019年07月11日

1、强制制定包的版本安装:
刚开始安装:composer require  gentor/mautic-api-laravel
提示:

[InvalidArgumentException]                                                                                                                                          
  
  Could not find a version of package gentor/mautic-api-laravel 
matching your minimum-stability (stable). Require it with an explicit 
version constraint allowing its   
  desired stability.

有些包没有发布稳定版,只有 dev-master 版本,composer 无法找到对应的稳定版来安装,只有强制制定版本了:
composer require  gentor/mautic-api-laravel dev-master
解决问题  

phpriji.cn | 网站地图 | 沪ICP备17015433号-1