PHP code example of tituskirch / nitrapi-php-lib

1. Go to this page and download the library: Download tituskirch/nitrapi-php-lib library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

tituskirch / nitrapi-php-lib example snippets





    $api = new \Nitrapi\Nitrapi("<accesss token>");
    
    var_dump($api->getServices());
    
} catch(\Exception $e) {
    var_dump("API Error: " . $e->getMessage());
}
 php
{
    "ituskirch/nitrapi-php-lib": "dev-main",
    }
}