【问题标题】:Error loading getstream with php使用 php 加载 getstream 时出错
【发布时间】:2017-03-16 22:21:17
【问题描述】:

我已按照 getstream.io 文档中的说明进行操作,但仍然出现此错误。

Warning: require_once(C:\xampp\htdocs\getstreamtest/vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\getstreamtest\test.php on line 3

Fatal error: require_once(): Failed opening required 'C:\xampp\htdocs\getstreamtest/vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\getstreamtest\test.php on line 3

我已经包含了当前版本的 getstream。根据简短的文档,这应该足够了。它说“Composer 会为你处理自动加载,所以如果你需要 vendor/autoload.php,你就可以开始了。”

{
"require": {
    "get-stream/stream": "2.2.9"
}
}

它不工作。有什么解决办法吗?

【问题讨论】:

  • vendor/autoload.php 的路径不正确,你混合了正斜杠和反斜杠
  • 是的,Composer 会处理好,但您首先需要加载 composer 的 autoload.php 文件,并且 No such file or directory 表示您没有做到。

标签: getstream-io


【解决方案1】:

我无法安装作曲家。但这解决了问题

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

谢谢

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-04-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-10-20
    • 2015-12-12
    相关资源
    最近更新 更多