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
- dev-master
- 3.1
- 3.0.2
- 3.0.1
- 3.0
- 2.1
- 2.0
- 1.0
- dev-BD-1645-fix-cakewebsite-ipv6-forwarding
- dev-PG-1784_hide_query_rcon_port_feature_php
- dev-add-timezone
- dev-add-getFeatures-function
- dev-fix-rate-limit-for-admins
- dev-sentry-cleanup
- dev-severity-flag
- dev-restore-backup
- dev-domain-endpoints
- dev-ssl-client-cert-support
- dev-API-531
This package is not auto-updated.
Last update: 2024-11-18 14:21:36 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()); }