jameron/plaid

Plaid API Wrapper

Installs: 57

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Type:project

6.0 2021-11-09 01:30 UTC

This package is auto-updated.

Last update: 2024-04-09 06:50:23 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.

  1. Add the package to your Laravel or Lumen project:
    composer require jameron/plaid
  1. Update your .env file with the following variables:
PLAID_CLIENT_ID=
PLAID_SECRET=
PLAID_CLIENT_NAME=''
PLAID_WEBHOOK=''
  1. Publish the config file:
    php artisan vendor:publish

**NOTE Remaining steps are for Lumen only, Laravel handles the setup automatically.

  1. Add the class alias to bootstrap\app.php
    if (!class_exists('Plaid')) {
        class_alias('Plaid\Plaid', 'Plaid');
    }
  1. 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')
];
  1. Add the config to bootstrap\app.php
$app->configure('plaid');