2017-07-26 16 views
0

私はプロジェクトにコンポーザーの依存関係としてリポジトリgitを追加しました。このリポジトリにComposerリポジトリgitクラスがLaravelで見つかりません

"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" 
    }, 

Clientクラスがあります:

<?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: 

答えて

0

あなたのcomposer.jsonでこれを試してみてください:

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

そして、あなたはそれを持っているようにcomposer installを行い、必要部分を維持し、以上です。

+0

これはanyhtingを変更していません – Neabfi

関連する問題