PHP code example of easybill / serverdensity_udp_metric_client

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

    

easybill / serverdensity_udp_metric_client example snippets




$client = new ServerdensityUDPAgent();
$client->sendSum('[METRIC_GROUP].[METRIC]', 1);