Laravel:使用作曲家安装 Microsoft Azure 客户端库


Laravel: Install Microsoft Azure Client Library with composer

是否有人在 Ubuntu 服务器上使用作曲家将 Azure 客户端库Microsoft安装到 Laravel 5 项目中?

当我尝试使用Composer安装时(命令:composer需要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.

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

通过修改作曲家的配置,通过将 secure-http 设置为 false 解决了

这个问题
"config": {
    "secure-http": "false"
}