Phpstorm 安装 laravel扩展,laravel代码提示插件

php中文网
发布: 2016-06-23 13:13:07
原创
2326人浏览过

phpstorm 安装 laravel扩展,laravel代码提示插件

1.    安装laravel插件

    

2.    配置laravel插件

立即学习PHP免费学习笔记(深入)”;

 

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 for more details.


Read for further common problems.

BeikeShop跨境电商PHP商城源码
BeikeShop跨境电商PHP商城源码

BeikeShop 一款开源好用的跨境电商系统,BeikeShop 是基于 Laravel 开发的一款开源商城系统主要面向外贸/跨境电商行业提供商品管理、订单管理、会员管理、支付、物流、系统管理等功能。BeikeShop系统亮点1、系统代码100%开源 2、代码分层清晰、格式规范 3、基于Laravel框架开发 4、Event机制实现Hook功能 5、强大的插件机制 6、系统扩展性强 方便二次开发

BeikeShop跨境电商PHP商城源码 0
查看详情 BeikeShop跨境电商PHP商城源码


可以参考如下的解决方案:

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))
PHP速学教程(入门到精通)
PHP速学教程(入门到精通)

PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号