PHP code example of datadog / php-datadogstatsd
1. Go to this page and download the library: Download datadog/php-datadogstatsd 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/ */
datadog / php-datadogstatsd example snippets
ataDog\DogStatsd;
$statsd = new DogStatsd(
array('host' => '127.0.0.1',
'port' => 8125,
)
);
"datadog/php-datadogstatsd": "1.5.*"