An open API service indexing awesome lists of open source software.

https://github.com/brokeyourbike/pixpayment-api-client-php

Pixel Payment API Client for PHP
https://github.com/brokeyourbike/pixpayment-api-client-php

api api-client api-client-php php pixpayment

Last synced: 4 months ago
JSON representation

Pixel Payment API Client for PHP

Awesome Lists containing this project

README

          

# pixpayment-api-client-php

[![Latest Stable Version](https://img.shields.io/github/v/release/brokeyourbike/pixpayment-api-client-php)](https://github.com/brokeyourbike/pixpayment-api-client-php/releases)
[![Total Downloads](https://poser.pugx.org/brokeyourbike/pixpayment-api-client/downloads)](https://packagist.org/packages/brokeyourbike/pixpayment-api-client)

PixPayment API Client for PHP

## Installation

```bash
composer require brokeyourbike/pixpayment-api-client
```

## Usage

```php
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
- [Ivan Stasiuk](https://github.com/brokeyourbike) | [Twitter](https://twitter.com/brokeyourbike) | [LinkedIn](https://www.linkedin.com/in/brokeyourbike) | [stasi.uk](https://stasi.uk)

## License
[BSD-3-Clause License](https://github.com/brokeyourbike/pixpayment-api-client-php/blob/main/LICENSE)