Skip to content

brokeyourbike/interswitch-api-client-php

Repository files navigation

interswitch-api-client-php

Latest Stable Version Total Downloads Maintainability Test Coverage

Interswitch API Client for PHP

Installation

composer require brokeyourbike/interswitch-api-client

Usage

use BrokeYourBike\Interswitch\Client;
use BrokeYourBike\Interswitch\Interfaces\ConfigInterface;

assert($config instanceof ConfigInterface);
assert($httpClient instanceof \GuzzleHttp\ClientInterface);
assert($psrCache instanceof \Psr\SimpleCache\CacheInterface);

$apiClient = new Client($config, $httpClient, $psrCache);
$apiClient->getAuthToken();

Authors

License

BSD-3-Clause License