jameron / plaid
Plaid API Wrapper
6.0
2021-11-09 01:30 UTC
README
This package has been built to work with Laravel. It is used for a personal project therefore it is missing a number of Plaid API endpoints. If you want to add more, please submit a pull request.
- Add the package to your Laravel or Lumen project:
composer require jameron/plaid
- Update your .env file with the following variables:
PLAID_CLIENT_ID= PLAID_SECRET= PLAID_CLIENT_NAME='' PLAID_WEBHOOK=''
- Publish the config file:
php artisan vendor:publish
**NOTE Remaining steps are for Lumen only, Laravel handles the setup automatically.
- Add the class alias to
bootstrap\app.php
if (!class_exists('Plaid')) { class_alias('Plaid\Plaid', 'Plaid'); }
- Create config file config/plaid.php
<?php return [ 'api_host' => 'https://development.plaid.com/', 'client_id' => env('PLAID_CLIENT_ID'), 'secret' => env('PLAID_SECRET'), 'client_name' => env('PLAID_CLIENT_NAME'), 'webhook' => env('PLAID_WEBHOOK') ];
- Add the config to
bootstrap\app.php
$app->configure('plaid');