robbrazier / piwik
Laravel 的 Piwik 包
4.2.0
2023-03-17 20:41 UTC
Requires
- php: >=7.3
- guzzlehttp/guzzle: ^6.5|^7.3
- illuminate/support: >=5.0
Requires (Dev)
- ext-json: *
- ext-simplexml: *
- orchestra/testbench: ^6.19
- phpspec/prophecy: ^1.13
- phpunit/phpcov: ^8.2
- phpunit/phpunit: ^9.5
Suggests
- ext-json: Needed to support JSON formatting
- ext-simplexml: Needed to support XML formatting
- dev-master
- 4.2.0
- 4.1.1
- 4.1.0
- 4.0.0
- 3.3.1
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.1
- 3.0.0
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.1
- dev-dependabot/pip/docs/docs-4a19445461
- dev-dependabot/github_actions/github-actions-85289cd637
- dev-dependabot/pip/docs/docs-d35dd8fcd7
- dev-dependabot/composer/guzzlehttp/guzzle-7.9.2
- dev-dependabot/github_actions/github-actions-2a73193f27
This package is auto-updated.
Last update: 2024-09-02 21:50:07 UTC
README
Laravel (Composer 包) 的 Piwik 分析 API 接口
这是 Laravel 5+ 版本的 Laravel-Piwik Bundle。
从版本 4.0.0 开始,不再支持 PHP 5.6、7.0 和 7.1
安装
将 RobBrazier/Piwik
添加到 composer.json
{ "require": { "robbrazier/piwik": "~4.2" } }
对于 Laravel 5.4 及以下版本
将 'RobBrazier\Piwik\PiwikServiceProvider'
和 'Piwik' => 'RobBrazier\Piwik\Facades\Piwik'
添加到 app/config/app.php
'providers' = [ ... RobBrazier\Piwik\PiwikServiceProvider::class, ... ], [...] 'aliases' = [ ... 'Piwik' => RobBrazier\Piwik\Facades\Piwik::class, ... ],
对于 Laravel 5.5 及以上版本,无需更改 app.php,因为自动加载器会自动获取所需的配置
然后运行以下命令将配置文件移出包,以避免更新时被替换:
php artisan vendor:publish --provider="RobBrazier\Piwik\PiwikServiceProvider" --tag="config"
使用 composer update
或 composer install
更新您的包。
然后转到 config/piwik.php
并添加您的配置设置,如服务器、API 密钥、站点 ID 等。
文档
使用文档位于 https://docs.robbrazier.com/Laravel_Piwik/Usage.html,API 文档位于 https://docs.robbrazier.com/Laravel_Piwik/API_Docs.html
贡献
欢迎提交拉取请求。对于重大更改,请先提交问题以讨论您想进行哪些更改。
请确保根据需要更新测试。