luno / luno-php
PHP SDK for the Luno API
Installs: 1 766
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 4
Forks: 26
Open Issues: 4
Requires
- guzzlehttp/guzzle: ^6.3.3
- netresearch/jsonmapper: ^1.4
Requires (Dev)
- phpunit/phpunit: 7.1.4
This package is not auto-updated.
Last update: 2025-02-03 17:53:10 UTC
README
Luno API ![Build Status](https://camo.githubusercontent.com/334a10759e17e6e815039618a86f5ab9224d1199a2d4ddb78b0ac51642a5a1e8/68747470733a2f2f7472617669732d63692e6f72672f6c756e6f2f6c756e6f2d7068702e7376673f6272616e63683d6d6173746572)
This PHP package provides a wrapper for the Luno API.
Installation
composer require "luno/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(); }