Composer php 使用Composer找不到API类
我不熟悉使用composer,我安装了它,创建了composer.json文件。使用以下说明安装了bigcommerce api: 当我尝试运行“使用Bigcommerce\Api\Client作为Bigcommerce”时,我发现错误类未找到 我使用的是localhost,我的文件结构是: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 ->
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”和“自动加载”。您是否遵循代码中的过程