schleyer-edv / fireapi-php-client
A full-featured implementation of the fireapi of 24fire GmbH
v2.1.2
2024-08-30 11:38 UTC
Requires
- php: >=7.4
- ext-json: *
- guzzlehttp/guzzle: ^7.8|~7.0
Requires (Dev)
- phpunit/phpunit: ^4.8
README
=======================
This PHP 8.1+ library allows you to communicate with the fireapi of 24fire GmbH.
You can find the full API documentation here!
Getting Started
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
Examples
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}')); ?>