PHP based SDK for the NitrAPI
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/Nitrapi
test
.gitignore
LICENSE
README.md
composer.json
phpunit.xml

README.md

Nitrapi-PHP

Latest Stable Version Latest Unstable Version Total Downloads

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());
}