我已经添加了一个存储库 git 作为我的项目的作曲家依赖项。
"repositories": [
{
"type":"package",
"package": {
"name": "Neabfi/SDK-PHP",
"version":"3.1.2",
"source": {
"url": "https://github.com/Neabfi/SDK-PHP.git",
"type": "git",
"reference":"master"
}
}
}
],
"require": {
"Neabfi/SDK-PHP": "3.1.2"
},
在这个存储库中有一个客户端类:
<?php
namespace RecastAI;
/**
* Class Client
* @package RecastAI
*/
class Client { ... }
当我尝试使用它时。
<?php
use RecastAI\Client;
[...]
$client = new Client(env('RECAST_REQUEST_TOKEN'), env('RECAST_LANGUAGE'));
[...]
他似乎找不到它:
[2017-07-26 15:30:50] local.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Class 'RecastAI\Client' not found in /Users/fabien/Sites/abote/app/Recast.php:20
Stack trace: