PHP code example of jamesmills / laravel-datadog

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

    

jamesmills / laravel-datadog example snippets


php artisan vendor:publish --provider="JamesMills\LaravelDataDog\LaravelDataDogServiceProvider" --tag=config

\DataDog::increment('app.pageview');

\DataDog::increment('app.pageview', ['my:tag:one', 'my:tag:two']);

\DataDog::increment('app.pageview', ['my:tag:one', 'my:tag:two'], 'my.host.com');