daimekashiya / luno-php
PHP SDK for the Luno API. Updated with latest release from source Github Repository since the official on Packagist only as at v0.0.4
2.0.0
2022-03-23 07:05 UTC
Requires
- guzzlehttp/guzzle: ^7.0.1
- netresearch/jsonmapper: ^4.0.0
Requires (Dev)
- phpunit/phpunit: ^9.3.3
This package is auto-updated.
Last update: 2024-10-23 14:41:42 UTC
README
Luno API
This PHP package provides a wrapper for the Luno API. Updated with latest release from source Github Repository since the official on Packagist only as at v0.0.4
Installation
composer require daimekashiya/luno-php
Authentication
Please visit the Settings page to generate an API key.
Example usage
$client = new Luno\Client(); $client->setAuth("api_key_id", "api_key_secret"); $req = new Luno\Request\GetOrderBook(); $req->setPair("XBTZAR"); try { $res = $client->getOrderBook($req); echo "Found " . count($res->getBids()) . " bid(s)"; } catch (Luno\Error $e) { echo $e->message(); }