brokeyourbike/interswitch-api-client

Interswitch API Client for PHP

0.1.4 2024-09-02 20:29 UTC

This package is auto-updated.

Last update: 2024-10-02 20:41:03 UTC


README

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