Phpstorm 安裝 laravel擴展,laravel代碼提示插件

Phpstorm 安裝 laravel擴展,laravel代碼提示插件 php

1.    安裝laravel插件 laravel

    

2.    配置laravel插件 json

 

3.    在這裏安裝laravel的提示插件 barryvdh/laravel-ide-helper composer

        

這裏有可能報錯:以下 ide

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.
ui


能夠參考以下的解決方案: spa

http://www.zhangxihai.cn/archives/108 插件

在命令行執行以下的命令 命令行

composer require barryvdh/laravel-ide-helper code

   

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))
相關文章
相關標籤/搜索