【问题标题】:API Class not found using Composer使用 Composer 找不到 API 类
【发布时间】: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

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

【问题讨论】:

    标签: composer-php bigcommerce


    【解决方案1】:

    请在此处阅读 Composer 的文档:https://getcomposer.org/doc/00-intro.md 注意最后几段,“使用 Composer”和“自动加载”。您是否按照代码中的程序进行操作?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-11-30
      • 1970-01-01
      • 2019-11-10
      • 2016-03-22
      • 1970-01-01
      • 2013-04-16
      • 1970-01-01
      相关资源
      最近更新 更多