Laravel 5 - Fatal error: Class not found Vendor Feedly Package

Laravel 5 - Fatal error: Class not found Vendor Feedly Package

我正在使用 Laravel 5.2,composer 这个包 (https://github.com/kbariotis/feedly-api) 已经安装。

但这行不通:(

app/Http/Controllers/TestController.php

$feedly = new Feedly(new feedly\Mode\SandBoxMode(), new feedly\AccessTokenStorage\AccessTokenSessionStorage());

表示未找到 class。

Fatal error: Class 'App\Http\Controllers\feedly\Feedly' not found

我的包在这个路径:/vendor/kbariotis/feedly-api/src/feedly/Feedly.php

请在定义控制器 class 之前添加到文件顶部:

use \feedly\Feedly;
use \feedly\Mode\SandBoxMode AS FeedlyMode;
use \feedly\AccessTokenStorage\AccessTokenSessionStorage AS FeedlyAccessTokenStorage;

然后像这样使用它:

$feedly = new Feedly(new FeedlyMode(), new FeedlyAccessTokenStorage());

其他指南在example