PHP code example of sevenspan / laravel-matomo

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

    

sevenspan / laravel-matomo example snippets


php artisan vendor:publish --provider="SevenSpan\Matomo\Providers\MatomoServiceProvider" --tag="config"



return [
    /*
    |--------------------------------------------------------------------------
    | Matomo API URI
    |--------------------------------------------------------------------------
    |
    | Matomo API URI.
    |
    */

    'api_uri' => env('MATOMO_API_URL', ''),

    /*
    |--------------------------------------------------------------------------
    | Matomo Token
    |--------------------------------------------------------------------------
    |
    | Matomo Access Token.
    |
    */

    'token' => env('MATOMO_TOKEN', '')

];