Php 使用Laravel找不到编写器存储库git类

Php 使用Laravel找不到编写器存储库git类,php,laravel,git,composer-php,sap-conversational-ai,Php,Laravel,Git,Composer Php,Sap Conversational Ai,我已经将存储库git作为composer依赖项添加到我的项目中 "repositories": [ { "type":"package", "package": { "name": "Neabfi/SDK-PHP", "version":"3.1.2", "source": { "url": "ht

我已经将存储库git作为composer依赖项添加到我的项目中

"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 { ... }

您应该在
composer.json中尝试此操作:

"repositories": [
    {
      "type": "git",
      "url": "https://github.com/Neabfi/SDK-PHP.git"
    }
  ],

保留require部分,执行
composer安装
,就这样。

这不会改变任何内容
[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:
"repositories": [
    {
      "type": "git",
      "url": "https://github.com/Neabfi/SDK-PHP.git"
    }
  ],