bernskioldmedia/laravel-matomo 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bernskioldmedia/laravel-matomo

最新稳定版本:0.2.0

Composer 安装命令:

composer require bernskioldmedia/laravel-matomo

包简介

Access and manage Matomo from Laravel.

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Access and manage Matomo from Laravel.

Installation

You can install the package via composer:

composer require bernskioldmedia/laravel-matomo

You can publish the config file with:

php artisan vendor:publish --tag="laravel-matomo-config"

This is the contents of the published config file:

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'),

];

Usage

A select number of the Matomo APIs are available, with more to be added as we have a need for them.

Each API has its own resource, with the methods available as nicely named methods. All are accessible via the provided Facade. See the examples below.

For the full list of methods, please refer, currently, to the source code,

use \BernskioldMedia\LaravelMatomo\Facades\Matomo;

// get a summary object of metrics for the site with the ID 1.
$summary = Matomo::summary()->site(1)->all();

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 233
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-08-06