PHP code example of antoinebonin / matomo
1. Go to this page and download the library: Download antoinebonin/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/ */
antoinebonin / matomo example snippets
$client = new \Antoinebonin\Matomo\Domain\Client\Client(
$adapter,
$baseUrl,
$authToken
);
$action = new AddSiteAction($name, $url);
$client->send($action)