PHP code example of wildfire / open-falcon-php-sdk

1. Go to this page and download the library: Download wildfire/open-falcon-php-sdk 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/ */

    

wildfire / open-falcon-php-sdk example snippets



\Wildfire\OpenFalcon\OpenFalconClient;

    
$host = "127.0.0.1";
$user = "root";
$passwd = "root";
$client = new OpenFalconClient($host,$user,$passwd);
$hostgroups = $client->hostGroups();
$templates = $client->templates();

var_dump(compact("hostgroups","templates"));