Skip to content

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

License

Notifications You must be signed in to change notification settings

Schleyer-EDV/fireapi-php-client

Repository files navigation

fireapi-php-client

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

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages