2017 © Pedro Peláez
 

library privatbank-api

Library for connecting to PrivatBank API

image

sergeynezbritskiy/privatbank-api

Library for connecting to PrivatBank API

  • Saturday, April 28, 2018
  • by sergeynezbritskiy
  • Repository
  • 2 Watchers
  • 0 Stars
  • 32 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 28 % Grown

The README.md

PrivatBank API

Library for connecting your PHP application with PrivatBank API, (*1)

Build Status Latest Stable Version Total Downloads Latest Unstable Version License, (*2)

Installation

The easiest way to install module is using Composer, (*3)

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

Notes

For more details please visit [https://api.privatbank.ua/], (*4)

Simple usage

Using library is as easy as possible, (*5)

//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');

The Versions

28/04 2018

dev-master

9999999-dev

Library for connecting to PrivatBank API

  Sources   Download

MIT

The Requires

 

The Development Requires

28/04 2018

v1.0.1

1.0.1.0

Library for connecting to PrivatBank API

  Sources   Download

MIT

The Requires

 

The Development Requires

17/03 2018

v1.0.0

1.0.0.0

Library for connecting to PrivatBank API

  Sources   Download

MIT

The Requires

 

The Development Requires

17/03 2018

dev-dev

dev-dev

Library for connecting to PrivatBank API

  Sources   Download

MIT

The Requires

 

The Development Requires