Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/drupal/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Composer php 使用Composer找不到API类_Composer Php_Bigcommerce - Fatal编程技术网

Composer php 使用Composer找不到API类

Composer php 使用Composer找不到API类,composer-php,bigcommerce,Composer Php,Bigcommerce,我不熟悉使用composer,我安装了它,创建了composer.json文件。使用以下说明安装了bigcommerce api: 当我尝试运行“使用Bigcommerce\Api\Client作为Bigcommerce”时,我发现错误类未找到 我使用的是localhost,我的文件结构是: testsite src-> contains all classes including Client.php vendor -> bigcommerce -> api ->

我不熟悉使用composer,我安装了它,创建了composer.json文件。使用以下说明安装了bigcommerce api:

当我尝试运行“使用Bigcommerce\Api\Client作为Bigcommerce”时,我发现错误类未找到

我使用的是localhost,我的文件结构是:

testsite
 src-> contains all classes including Client.php
 vendor -> bigcommerce -> api -> the api files, 
 api.php -> my test file trying to connect to api

我没有改变任何作曲家的文件,我已经研究了自动加载。正如我之前所说,这是第一次使用composer。

请在此处阅读composer的文档:注意最后几段,“使用composer”和“自动加载”。您是否遵循代码中的过程