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