Home > Article > Backend Development > Phpstorm 安装 laravel扩展,laravel代码提示插件
Phpstorm 安装 laravel扩展,laravel代码提示插件
1. 安装laravel插件
2. 配置laravel插件
3. 在这里安装laravel的提示插件 barryvdh/laravel-ide-helper
这里有可能报错:如下
Failed to decode response: zlib_decode(): data error
Retrying with degraded mode, check https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode for more info
Your configuration does not allow connection to http://packagist.org. See https://getcomposer.org/doc/06-config.md#secure-http for details.
http://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package barryvdh/laravel-ide-helper could not be found in any version, there may be a typo in the package name.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see
Read
可以参考如下的解决方案:
http://www.zhangxihai.cn/archives/108
在命令行执行如下的命令
composer require barryvdh/laravel-ide-helper
ps: 请确保在你的项目中的composer.json文件中有如下配置
require": {
"php": ">=5.5.9",
"laravel/framework": "5.2.*",
"barryvdh/laravel-ide-helper": "^2.1"
},
安装成功后的提示:
$ composer require barryvdh/laravel-ide-helper