antoinebonin/matomo

任何PHP代码的Matomo API包装器

1.0.0 2024-02-14 16:15 UTC

This package is auto-updated.

Last update: 2024-09-14 17:43:06 UTC


README

任何PHP代码的Matomo API包装器

如何使用

  1. 使用Antoinebonin\Matomo\Domain\Adapter\HttpClientAdapterInterface接口实现适配器。
  2. 初始化客户端
    $client = new \Antoinebonin\Matomo\Domain\Client\Client(
        $adapter,
        $baseUrl,
        $authToken
    );
  3. 使用动作与您的客户端交互
    $action = new AddSiteAction($name, $url);
    $client->send($action)