PHP code example of mtxserv / metric-bundle

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

    

mtxserv / metric-bundle example snippets


$this->get('metric')->add('app_queue', [
    'value'     => 1,
]);

$this->get('metric')->decrement('app_queue');

$this->get('metric')->increment('app_queue');

$this->get('metric')->timing('app_queue', time());

$this->get('metric')->measure('app_queue', 10.0);