brokeyourbike/pixpayment-api-client

PixPayment API Client for PHP

0.1.5 2024-12-23 22:53 UTC

This package is auto-updated.

Last update: 2024-12-23 22:54:13 UTC


README

Latest Stable Version Total Downloads

PixPayment API Client for PHP

Installation

composer require brokeyourbike/pixpayment-api-client

Usage

use BrokeYourBike\PixPayment\Client;
use BrokeYourBike\PixPayment\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