PHP code example of flowti / zabbix-bundle

1. Go to this page and download the library: Download flowti/zabbix-bundle 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/ */

    

flowti / zabbix-bundle example snippets


php bin/console config:dump-reference FlowtiZabbixBundle > config/packages/flowti_zabbix.yaml

/**
* @Route("/zabbix", name="zabbix-test")
*/
public function zabbixText(FlowtiZabbixClient $zabbix)
{
    dump($zabbix->getTrigger(629272));
    dd($zabbix->getHost('srvdata02rj-q01147'));
}