【发布时间】:2018-09-19 03:22:36
【问题描述】:
在尝试使用来自Sightengine 的API 的不同方式后,我无法让它工作,我按照their site 上的说明,通过composer 安装,但是当我尝试使用它时,我得到Class not found 错误阿帕奇:
PHP Fatal error: Uncaught Error: Class 'Sightengine\\SightengineClient' not found in /var/www/html/photobooth/app.php
PHP 文件:
<?php
use Sightengine\SightengineClient;
$client = new SightengineClient('xxxxxxx', 'xxxxxxxxx');
【问题讨论】:
-
首先包含或要求它
-
Hello @Ghost 我试过了,它返回同样的错误,我用这个命令安装:composer require visionengine/client-php 我不知道它安装在哪里,我需要运行来自特定文件夹的命令?