tituskirch/nitrapi-php-lib

Titus version of the PHP SDK for the Nitrapi RESTful API.

Installs: 13

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 10

pkg:composer/tituskirch/nitrapi-php-lib

4.2.0 2022-03-22 12:44 UTC

This package is auto-updated.

Last update: 2025-09-22 21:26:57 UTC


README

Latest Stable Version Latest Unstable Version Total Downloads PHP Composer

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