Lue dans les fichiers PHP du paquet au commit cb405530697e : ses espaces de noms, classes, interfaces et énumérations, leurs constantes, propriétés et méthodes publiques avec leur PHPDoc, et les options que prennent ses fabriques. Rien n’en est exécuté.
MatomoFactoryclassMatomo, from its options:
3 options · 1 method
MatomoProviderclassMatomo's Reporting API (https://developer.matomo.org/api-reference/reporting-api): POST index.php?module=API with the token in the body, one report a call - API.get for the whole site, Actions.getEntryPageUrls, Actions.getPageUrls, Referrers.getAll, UserCountry.getCountry, DevicesDetection.getType for a breakdown; period=range over the query's days, or period=day for a history (Dimension::Date).
5 methods
Omnireach\Matomo
MatomoFactory class
final class MatomoFactory extends ProviderFactory MatomoFactory.php:19
Matomo, from its options:
url the Matomo installation: https://stats.example.org, https://example.matomo.cloud site the site's id (idSite) token a token_auth with view access (Administration, Personal, Security); "anonymous" (the default) for a site whose reports anyone may view
Options
| Option | Default | |
|---|---|---|
token | 'anonymous' | |
url | required | |
site | required |
MatomoFactory::__construct()
public function __construct(readonly ?HttpClientInterface $http = null)MatomoProvider class
final class MatomoProvider implements AudienceInterface MatomoProvider.php:27
Matomo's Reporting API (https://developer.matomo.org/api-reference/reporting-api): POST index.php?module=API with the token in the body, one report a call - API.get for the whole site, Actions.getEntryPageUrls, Actions.getPageUrls, Referrers.getAll, UserCountry.getCountry, DevicesDetection.getType for a breakdown; period=range over the query's days, or period=day for a history (Dimension::Date).
MatomoProvider::__construct()
public function __construct(HttpClientInterface $http, readonly string $url, readonly string $site, readonly string $token = 'anonymous')MatomoProvider::getName()
public function getName(): stringMatomoProvider::getTitle()
public function getTitle(): stringMatomoProvider::capabilities()
public function capabilities(): CapabilitiesMatomoProvider::audience()
public function audience(ReachQuery $query): Report