schleyer-edv/fireapi-php-client

A full-featured implementation of the fireapi of 24fire GmbH

v2.1.1 2024-04-12 17:08 UTC

This package is auto-updated.

Last update: 2024-05-12 17:18:21 UTC


README

=======================

This PHP 8.1+ library allows you to communicate with the fireapi of 24fire GmbH.

PHP Version Require Latest Stable Version License

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}'));
?>