Phpstorm installs laravel extension and laravel code prompt plug-in

Source: Internet
Author: User
Phpstorm installs the laravel extension. the laravel code prompts the plug-in Phpstorm to install the laravel extension. the laravel code prompts the plug-in.

1. install the laravel plug-in

2. configure the laravel plug-in

3. install the prompt plug-in barryvdh/laravel-ide-helper

The following error may be reported:

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 cocould not be fully loaded, package information was loaded from the local cache and may be out of date
Your requirements cocould not be resolved to an installable set of packages.


Problem 1
-The requested package barryvdh/laravel-ide-helper cocould 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


You can refer to the following solutions:

Http://www.zhangxihai.cn/archives/108

Run the following command on the command line:

Composer require barryvdh/laravel-ide-helper



Ps: make sure the following configurations are available in the composer. json file of your project.

Require ":{
"Php": "> = 5.5.9 ",
"Laravel/framework": "5.2 .*",
"Barryvdh/laravel-ide-helper": "^ 2.1"
},

Prompt after successful installation:

$ 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 ))

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.