Skip to content

sergeynezbritskiy/privatbank-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PrivatBank API

Library for connecting your PHP application with PrivatBank API

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

Installation

The easiest way to install module is using Composer

composer require sergeynezbritskiy/privatbank-api:"^3.0"

Notes

For more details please visit [https://api.privatbank.ua/]

Simple usage

Using library is as easy as possible

//create public client for connecting with API
$client = new \SergeyNezbritskiy\PrivatBank\PublicClient();
//run the request
$result = $client->infrastructure(\SergeyNezbritskiy\PrivatBank\Request\InfrastructureRequest::TYPE_ATM, 'Днепр');

//create authorized client for connecting with API
$client = new \SergeyNezbritskiy\PrivatBank\AuthorizedClient();
//create merchant
$merchant = new \SergeyNezbritskiy\PrivatBank\Merchant('<your_merchant_id>', '<your_merchant_secret>');
$client->setMerchant($merchant);
//run the request
$result = $client->balance('4111111111111111');

About

PHP library for connecting to Privat24 API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages