php - 拉拉维尔 : Install Microsoft Azure Client Library with composer

标签 php azure laravel-5 composer-php

有人在 Ubuntu 服务器上使用 Composer 将 Microsoft Azure 客户端库安装到 Laravel 5 项目吗?

当我尝试使用 Composer 安装(命令:composer require microsoft/windowsazure)时,出现下一个错误:

Using version ^0.4.1 for microsoft/windowsazure
./composer.json has been updated
> php artisan clear-compiled
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for microsoft/windowsazure ^0.4.1 -> satisfiable by microsoft/windowsazure[v0.4.1].
- microsoft/windowsazure v0.4.1 requires pear-pear2.php.net/http_request2 * -> no matching package found.

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.

Installation failed, reverting ./composer.json to its original content.

有人知道我做错了什么吗? 感谢您的帮助。

最佳答案

通过修改 Composer 的配置,将 secure-http 设置为 false 解决了该问题

"config": {
    "secure-http": "false"
}

关于php - 拉拉维尔 : Install Microsoft Azure Client Library with composer,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36057051/

相关文章:

azure - 如何在没有本地数据网关的情况下自动刷新 Power BI 仪表板

php - Laravel 5.2 View Composer 被多次执行

php - 如何检测模型事件中的强制删除

php - 导入 LOAD DATA INFILE 时将我的 php 变量连接到 csv 数据

php - 任何更快、更简单的 php preg_match 替代品

java - 具有多个端点的 Azure 函数 (Java)

laravel-5 - Laravel 集成 Google 云存储

php - 使用 PHP 将 native 图像上传到 MySQL

php - 具有 2 个变量的循环 SQL 查询

azure - 从数据工厂链接服务获取存储帐户名称