antoinebonin / matomo
Wrapper around Matomo API for any PHP code
1.0.0
2024-02-14 16:15 UTC
Requires
- php: ^8.0
Requires (Dev)
- ekino/phpstan-banned-code: ^1.0
- friendsofphp/php-cs-fixer: ^3.48
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10.5
- qossmic/deptrac-shim: ^1.0
- yamadashy/phpstan-friendly-formatter: ^1.0
This package is auto-updated.
Last update: 2025-02-14 18:33:00 UTC
README
Wrapper around Matomo API for any PHP code
How to use
- Implement an adapter using the
Antoinebonin\Matomo\Domain\Adapter\HttpClientAdapterInterface
interface. - Initiate a client
$client = new \Antoinebonin\Matomo\Domain\Client\Client( $adapter, $baseUrl, $authToken );
- Use action to with your client
$action = new AddSiteAction($name, $url); $client->send($action)