nitrado / nitrapi-php-lib
PHP SDK for Nitrapi
3.1
2019-01-14 08:42 UTC
Requires
- php: >=5.5
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
- phpunit/phpunit: ~5.0
This package is not auto-updated.
Last update: 2024-04-22 12:15:50 UTC
README
Official PHP based SDK for the Nitrapi RESTful API.
Recommends
- PHP 5.5 or higher
- Composer
Installation
Edit the composer.json and execute composer.phar update
{ "require": { "nitrado/nitrapi-php-lib": "dev-master", } }
Example
<?php require_once '../vendor/autoload.php'; try { $api = new \Nitrapi\Nitrapi("<accesss token>"); var_dump($api->getServices()); } catch(\Exception $e) { var_dump("API Error: " . $e->getMessage()); }