带有一些 Laravel 扩展的 PHP Plaid API 客户端

v2.0.12 2016-07-28 12:43 UTC

README

带有 Laravel 扩展

这是一个相当健壮的类集,试图严格遵守 Plaid API 文档

安装

composer require oldtimeguitarguy/plaid

Laravel 专用

再次强调... 使用此 API 客户端不需要 LARAVEL

  1. 将以下行添加到 config/app.php@providers: OldTimeGuitarGuy\Plaid\Laravel\PlaidServiceProvider::class,

  2. 为了访问外观,将以下行添加到 config/app.php@aliases: 'Plaid' => OldTimeGuitarGuy\Plaid\Laravel\PlaidFacade::class,

  3. 运行 php artisan vendor:publish

  4. 参考已复制到 config/plaid.php 的配置文件

用法

我还需要编写用法说明。在此期间,请参考测试。所有内容都应该相当直观。

此外,请查看我对 此问题提问 的回复。

测试

AuthService
 [x] Add user
 [x] User step
 [x] Update user
 [x] Delete user
 [x] Get data

BalanceService
 [x] Get balance

CategoriesService
 [x] Get all categories
 [x] Get category by id

ConnectService
 [x] Add user
 [x] User step
 [x] Update user
 [x] Delete user
 [x] Get data

IncomeService
 [x] Add user
 [x] User step
 [x] Update user
 [x] Delete user
 [x] Get data

InfoService
 [x] Add user
 [x] User step
 [x] Update user
 [x] Delete user
 [x] Get data

InstitutionsService
 [x] Get all institutions
 [x] Get institution by type
 [x] Get institution by id
 [x] Search institutions
 [x] Search institutions by id
 [x] Get longtail institutions

PlaidExceptionResponse
 [x] Bad requests throw plaid request exception
 [x] Plaid request exception provides plaid response

Response
 [x] Iterate through arrayable top level contents

RiskService
 [x] Add user
 [x] User step
 [x] Update user
 [x] Delete user
 [x] Get data

UpgradeService
 [x] Upgrade user