tituskirch / nitrapi-php-lib
Titus version of the PHP SDK for the Nitrapi RESTful API.
4.2.0
2022-03-22 12:44 UTC
Requires
- php: >=7.3
- guzzlehttp/guzzle: ~7.0
Requires (Dev)
- phpunit/phpunit: ~9.0
README
Titus version of the PHP SDK for the Nitrapi RESTful API.
Recommends
- PHP 7.3 or higher
- Composer
Installation
Edit the composer.json and execute composer.phar update
{ "require": { "tituskirch/nitrapi-php-lib": "dev-main", } }
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()); }