Phpstorm 安裝 laravel擴充,laravel代碼提示外掛程式

來源:互聯網
上載者:User
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 for more details.


Read 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))
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.