2017 © Pedro Peláez
 

library php-binance

A PHP wrapper for the Binance API endpoints.

image

dantecoding/php-binance

A PHP wrapper for the Binance API endpoints.

  • Thursday, June 21, 2018
  • by dantecoding
  • Repository
  • 1 Watchers
  • 0 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 16 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

Larislackers-BinanceApi

Larislackers-BinanceApi is a Binance.com API wrapper for PHP. Moreover, the API wrapper supports all available functionality given from Binance along with sockets., (*1)

All requests are following the HTTP/1.1 protocol and all responses are returned as a PSR-7 ResponseInterface., (*2)

Tests are available after providing your key and secret in the corresponding class., (*3)

Install

composer require larislackers/php-binance

Usage

Information on how to obtain your API key and secret from Binance can be found here., (*4)

First things first, in order to use the API wrapper you should initialize it with the aforementioned key and secret like this:, (*5)

$bac = new BinanceApiContainer('<your_key>', '<your_secret>');

Then, use the initiated object/var like this:, (*6)

// Get all orders for a symbol (BNB/BTC pair).
$orders = $bac->getOrderBook(['symbol' => 'BNBBTC']);
var_dump($orders->getBody()->getContents());

You may find the rest of the supported commands inside the BinanceApiContainer., (*7)

Notes

All parameters required for each function must be in array format. More information can be found in the comments (phpdoc) and the links to the corresponding functions documented at Binance., (*8)

Avoid to use hardcoded values; enums are available (for intervals, types, sides, etc) for consistency and compliance with the Binance API., (*9)

You should use your own logger (like Sentry) and catch BinanceApiException for exceptions returned from Binance API and LarislackersException for exceptions returned from Websockets., (*10)

Don't reinvent the wheel by trying to cache results in a request lifecycle with static classes. Use a framework that supports caching (like Laravel), an extension (like Memcached) or using files. Additional information can be found here., (*11)

More information on how to use the library can be found here., (*12)

See the official API documentation for more information about the endpoints and responses., (*13)

License

Larislackers-BinanceApi is open-sourced software licensed under the MIT license, (*14)

Donations/Support

If you find this library to your liking and enjoy using it, please consider a donation to one of the following addresses: * BTC: 13rSaL7ze89Pz28fNR9cNCnNVNvLWR3eFt * ETH: 0x03d4566d13ca7c7b30c39666b1f21ff97bee3f97 * XMR: 49hxHRNwLSdQcXuCcac3ySMnAEuH4BhLWR8NddjHi6QBJHNvj1LqcSg2X8qpTQgsE1brzt37W6dLiiSN6uCj1CwyUPNr8R5, (*15)

The Versions

21/06 2018

dev-master

9999999-dev https://github.com/dantecoding/php-binance

A PHP wrapper for the Binance API endpoints.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alex Ryabykin

api php cryptocurrency php-library wrapper-api binance cryptocurrency-exchanges

21/06 2018

1.0.8

1.0.8.0 https://github.com/dantecoding/php-binance

A PHP wrapper for the Binance API endpoints.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alex Ryabykin

api php cryptocurrency php-library wrapper-api binance cryptocurrency-exchanges

21/06 2018

1.0.7

1.0.7.0 https://github.com/dantecoding/php-binance

A PHP wrapper for the Binance API endpoints.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alex Ryabykin

api php cryptocurrency php-library wrapper-api binance cryptocurrency-exchanges

20/06 2018

1.0.6

1.0.6.0 https://github.com/dantecoding/php-binance

A PHP wrapper for the Binance API endpoints.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alex Ryabykin

api php cryptocurrency php-library wrapper-api binance cryptocurrency-exchanges

20/06 2018

1.0.5

1.0.5.0 https://github.com/dantecoding/php-binance

A PHP wrapper for the Binance API endpoints.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alex Ryabykin

api php cryptocurrency php-library wrapper-api binance cryptocurrency-exchanges

20/06 2018

1.0.4

1.0.4.0 https://github.com/dantecoding/php-binance

A PHP wrapper for the Binance API endpoints.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alex Ryabykin

api php cryptocurrency php-library wrapper-api binance cryptocurrency-exchanges

11/06 2018

1.0.3

1.0.3.0 https://github.com/dantecoding/php-binance

A PHP wrapper for the Binance API endpoints.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alex Ryabykin

api php cryptocurrency php-library wrapper-api binance cryptocurrency-exchanges

29/10 2017

1.0.2

1.0.2.0 https://github.com/larislackers/php-binance

A PHP wrapper for the Binance API endpoints.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Panagiotis Papadatis
by Dimitrios Giouroukis

api php cryptocurrency php-library wrapper-api binance cryptocurrency-exchanges

12/10 2017

v1.0.1

1.0.1.0 https://github.com/larislackers/php-binance

A PHP wrapper for the Binance API endpoints.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Panagiotis Papadatis
by Dimitrios Giouroukis

api php cryptocurrency binance

08/10 2017

v1.0.0

1.0.0.0 https://github.com/larislackers/php-binance

A PHP wrapper for the Binance API endpoints.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Panagiotis Papadatis
by Dimitrios Giouroukis

api php cryptocurrency binance