bernskioldmedia / laravel-matomo
通过 Laravel 访问和管理 Matomo。
0.1.0
2022-08-06 15:45 UTC
Requires
- php: ^8.0
- illuminate/contracts: ^9.0
- spatie/laravel-package-tools: ^1.9.2
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^6.0
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^7.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-09-08 04:10:18 UTC
README
通过 Laravel 访问和管理 Matomo。
安装
您可以通过 composer 安装此包
composer require bernskioldmedia/laravel-matomo
您可以使用以下命令发布配置文件
php artisan vendor:publish --tag="laravel-matomo-config"
这是已发布配置文件的内容
return [ /** * This is the Matomo API key that allows you to work * with the API. */ 'api_key' => env('MATOMO_API_KEY'), /** * This is the URL of the Matomo installation that you want * to use the package with. */ 'base_url' => env('MATOMO_BASE_URL'), ];
用法
部分 Matomo API 可用,随着需求增加,将添加更多。
每个 API 都有自己的资源,方法以命名方法的形式提供。所有这些方法都可以通过提供的 Facade 访问。请参见下面的示例。
有关方法的完整列表,请参考,目前,源代码,
use \BernskioldMedia\LaravelMatomo\Facades\Matomo; // get a summary object of metrics for the site with the ID 1. $summary = Matomo::summary()->site(1)->all();
测试
composer test
变更日志
请参阅 CHANGELOG 了解最近的变化。
贡献
请参阅 CONTRIBUTING 了解详细信息。
安全漏洞
请参阅 我们的安全策略 了解如何报告安全漏洞。
鸣谢
许可证
MIT 许可证(MIT)。请参阅 许可证文件 了解更多信息。