1.安装redis扩展
命令:composer require yiisoft/yii2-redis
Git地址:https://github.com/yiisoft/yii2-redis/blob/master/docs/guide/installation.md
2.安装sphinx扩展
命令:composer require --prefer-dist yiisoft/yii2-sphinx
Git地址:https://github.com/yiisoft/yii2-sphinx
3.安装elasticsearch扩展
命令:composer require --prefer-dist yiisoft/yii2-elasticsearch:"~2.0.0"
Git地址:https://github.com/yiisoft/yii2-elasticsearch
4.安装authclient扩展
命令:composer require --prefer-dist yiisoft/yii2-authclient "~2.1.0"
Git地址:https://github.com/yiisoft/yii2-authclient/blob/master/docs/guide/installation.md
5.安装mongodb扩展
命令:composer require --prefer-dist yiisoft/yii2-mongodb
Git地址:https://github.com/yiisoft/yii2-mongodb
注意:php版本需要按照 ext-mongodb 扩展
6.安装debug扩展
命令:composer require --prefer-dist yiisoft/yii2-debug
Git地址:https://github.com/yiisoft/yii2-debug/blob/master/docs/guide-zh-CN/installation.md
7.按装apidoc扩展
命令:composer require --prefer-dist yiisoft/yii2-apidoc
Git地址:https://github.com/yiisoft/yii2-apidoc
8.安装httpclient扩展
命令:composer require --prefer-dist yiisoft/yii2-httpclient "*"
地址:https://www.yiiframework.com/extension/yiisoft/yii2-httpclient/doc/guide/2.0/en/installation
* 官方推荐扩展清单:https://www.yiiframework.com/extensions/official
原文:https://www.cnblogs.com/justphp/p/11369013.html