laravel5.3安装redis扩展包
1,编辑 laravel 根目录下的 composer.json 文件:
- "require": {
- "php": ">=5.6.4",
- "laravel/framework": "5.4.*",
- "laravel/tinker": "~1.0",
- "predis/predis": "~1.1@dev"
- }
2、添加国内镜像依赖,在composer.json的最后添加仓库地址
- "repositories": [
- {"type": "composer", "url": "http://packagist.phpcomposer.com"},
- {"packagist": false}
- ]
3,在项目目录下执行:
composer update
(转载请注明花儿为何那样红博客)