【发布时间】:2015-04-16 05:27:00
【问题描述】:
我是使用 composer 的新手,我已经安装了它,创建了 composer.json 文件。使用以下说明安装 bigcommerce api:https://github.com/bigcommerce/bigcommerce-api-php
当我尝试运行“使用 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
我没有更改任何作曲家文件,我研究了自动加载。正如我之前所说,这是第一次使用作曲家。
【问题讨论】: