Phpstorm 安装 laravel扩展,laravel代码提示插件
2016-03-25 00:00
1091 查看
摘要: 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 <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
可以参考如下的解决方案:
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
Cannot create cache directory /Users/yangyulong/.composer/cache/repo/https---packagist.phpcomposer.com/, or directory is not writable. Proceeding without cache
Using version ^2.1 for barryvdh/laravel-ide-helper
./composer.json has been updated
Cannot create cache directory /Users/yangyulong/.composer/cache/repo/https---packagist.phpcomposer.com/, or directory is not writable. Proceeding without cache
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing symfony/class-loader (v3.0.3)
Downloading: 100%
- Installing barryvdh/laravel-ide-helper (v2.1.4)
Downloading: 100%
symfony/class-loader suggests installing symfony/polyfill-apcu (For using ApcClassLoader on HHVM)
barryvdh/laravel-ide-helper suggests installing doctrine/dbal (Load information from the database about models for phpdocs (~2.3))
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 <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
可以参考如下的解决方案:
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
Cannot create cache directory /Users/yangyulong/.composer/cache/repo/https---packagist.phpcomposer.com/, or directory is not writable. Proceeding without cache
Using version ^2.1 for barryvdh/laravel-ide-helper
./composer.json has been updated
Cannot create cache directory /Users/yangyulong/.composer/cache/repo/https---packagist.phpcomposer.com/, or directory is not writable. Proceeding without cache
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing symfony/class-loader (v3.0.3)
Downloading: 100%
- Installing barryvdh/laravel-ide-helper (v2.1.4)
Downloading: 100%
symfony/class-loader suggests installing symfony/polyfill-apcu (For using ApcClassLoader on HHVM)
barryvdh/laravel-ide-helper suggests installing doctrine/dbal (Load information from the database about models for phpdocs (~2.3))
相关文章推荐
- workerman结合laravel开发在线聊天应用的示例代码
- 简单对比分析Ruby on Rails 和 Laravel
- laravel安装zend opcache加速器教程
- 使用 PHPStorm 开发 Laravel
- 教你在PHPStorm中配置Xdebug
- 跟我学Laravel之请求与输入
- 跟我学Laravel之视图 & Response
- PHP IDE PHPStorm配置支持友好Laravel代码提示方法
- phpstorm配置Xdebug进行调试PHP教程
- Laravel 5.0 发布 新版本特性详解
- 详解PHP的Laravel框架中Eloquent对象关系映射使用
- 深入解析PHP的Laravel框架中的event事件操作
- PHPStrom中实用的功能和快捷键大全
- phpstorm编辑器乱码问题解决
- 推荐几款用 Sublime Text 开发 Laravel 所用到的插件
- Laravel中使用阿里云OSS Composer包分享
- Laravel 4 初级教程之Pages、表单验证
- Laravel框架表单验证详解
- phpstorm wamp 下环境以及调试环境(xdebug)搭建和配置
- Nginx+PHP框架laravel状态码500错误解决!