=======================
This PHP 8.1+ library allows you to communicate with the fireapi of 24fire GmbH.
You can find the full API documentation here!
Recommended installation is using Composer!
In the root of your project execute the following:
$ composer require schleyer-edv/fireapi-php-client
Or add this to your composer.json
file:
{
"require": {
"schleyer-edv/fireapi-php-client": "@stable"
}
}
Then perform the installation:
$ composer install --no-dev
Creating the fireapi main object:
<?php
// Require the autoloader
require_once 'vendor/autoload.php';
// Use the library namespace
use fireapi\fireapi;
// Then simply pass your API-Token when creating the API client object.
$client = new fireapi('API-Token');
// Then you are able to perform a request
var_dump($client->vm()->getStatus('{vmid}'));
?>