polygon/contextio

Service provider for laravel featuring context.io sdk

v1.1 2017-02-17 13:07 UTC

This package is auto-updated.

Last update: 2021-09-14 12:22:39 UTC


README

Total Downloads Latest Stable Version Latest Unstable Version

Laravel Context IO is a bundle for Laravel, providing a base integration with Context.io.

Using https://github.com/contextio/PHP-ContextIO

Please note that this package is for Laravel 5.4 only

Installation

Run composer require polygon/contextio to pull down the latest version of Laravel Context IO.

Edit config/app.php and add the provider

'providers' => [
    'Polygon\ContextIO\ContextIOServiceProvider',
]

Configuration

You can start by publishing the configuration files. Run the following command

$ php artisan vendor:publish --provider=Polygon\\ContextIO\\ContextIOServiceProvider

Setting Keys

Go to your .env file and set the required fields, as described in `config/contextio.php.

Usage

$client = new ContextIO();

$response = $client->listAccounts();

return $response->getData();