php代码提示插件下载不了,Phpstorm 安装 laravel扩展,laravel代码提示插件

本文介绍了在Phpstorm中安装Laravel扩展和laravel-ide-helper插件的步骤,包括可能遇到的错误及解决方法。在安装laravel-ide-helper时,可能会出现因数据错误导致的解码失败警告,可以通过执行特定的composer命令来解决。安装成功后,确保composer.json文件中包含所需配置,并更新依赖。
摘要由CSDN通过智能技术生成

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

1.安装laravel插件

0818b9ca8b590ca3270a3433284dd417.png

2.配置laravel插件

0818b9ca8b590ca3270a3433284dd417.png

3.在这里安装laravel的提示插件 barryvdh/laravel-ide-helper

0818b9ca8b590ca3270a3433284dd417.png

这里有可能报错:如下

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.

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

在命令行执行如下的命令

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值