PHP code example of schleyer-edv / fireapi-php-client

1. Go to this page and download the library: Download schleyer-edv/fireapi-php-client library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

schleyer-edv / fireapi-php-client example snippets



// Require the autoloader
se 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}'));