1,安装
composer.json
增加两句:
"minimum-stability" : "dev"
—— 设定的最低稳定性的版本为 dev 也就是可以依赖开发版本的扩展包;"prefer-stable" : true
—— Composer 优先使用更稳定的包版本。
执行命令安装:
D:\WWW\>composer require dingo/api
Using version ^2.2 for dingo/api
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 4 installs, 0 updates, 0 removals
- Installing league/fractal (0.17.0): Loading from cache
- Installing doctrine/annotations (v1.6.1): Loading from cache
- Installing dingo/blueprint (dev-master 76b1621): Cloning 76b1
- Installing dingo/api (v2.2.3): Loading from cache
league/fractal suggests installing pagerfanta/pagerfanta (Pagerfa
league/fractal suggests installing zendframework/zend-paginator (
dingo/api suggests installing tymon/jwt-auth (Protect