PHPackages                             bernskioldmedia/laravel-matomo - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. bernskioldmedia/laravel-matomo

ActiveLibrary[API Development](/categories/api)

bernskioldmedia/laravel-matomo
==============================

Access and manage Matomo from Laravel.

0.3.0(2mo ago)4291↓66.7%MITPHPPHP ^8.2CI passing

Since Aug 6Pushed 3w ago1 watchersCompare

[ Source](https://github.com/bernskiold/laravel-matomo)[ Packagist](https://packagist.org/packages/bernskioldmedia/laravel-matomo)[ Docs](https://github.com/bernskioldmedia/laravel-matomo)[ RSS](/packages/bernskioldmedia-laravel-matomo/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (3)Dependencies (24)Versions (11)Used By (0)

Laravel Matomo
==============

[](#laravel-matomo)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a3b3955f173553e471bca8e5347c485620c7709126aad519ca32d0de4dd0db4c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6265726e736b696f6c646d656469612f6c61726176656c2d6d61746f6d6f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bernskioldmedia/laravel-matomo)[![GitHub Tests Action Status](https://camo.githubusercontent.com/4da0f28fb592de823957cc1201fc352471b017df4d5884289847b1eca2a752d5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6265726e736b696f6c646d656469612f6c61726176656c2d6d61746f6d6f2f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/bernskioldmedia/laravel-matomo/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/8ac9b71335f7ec6d30224f89c89a80f768d919782b1cfe3f6113b14d5cfcaab2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6265726e736b696f6c646d656469612f6c61726176656c2d6d61746f6d6f2f466978253230504850253230636f64652532307374796c652532306973737565733f6c6162656c3d636f64652532307374796c65)](https://github.com/bernskioldmedia/laravel-matomo/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/0ac418eb2c2f5fdbc7f5623f824877b5052f03bb00b3e1a9a3e379fa61dd2064/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6265726e736b696f6c646d656469612f6c61726176656c2d6d61746f6d6f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bernskioldmedia/laravel-matomo)

Access and manage Matomo from Laravel.

Installation
------------

[](#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
-----

[](#usage)

A select number of the [Matomo APIs](https://developer.matomo.org/api-reference/reporting-api) 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
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/bernskioldmedia/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Bernskiold Media](https://github.com/bernskioldmedia)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance91

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 62.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~679 days

Total

3

Last Release

63d ago

PHP version history (2 changes)0.1.0PHP ^8.0

0.2.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8409819?v=4)[Bernskiold](/maintainers/bernskiold)[@bernskiold](https://github.com/bernskiold)

---

Top Contributors

[![ErikBernskiold](https://avatars.githubusercontent.com/u/1166728?v=4)](https://github.com/ErikBernskiold "ErikBernskiold (61 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (21 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (11 commits)")[![claude](https://avatars.githubusercontent.com/u/81847?v=4)](https://github.com/claude "claude (4 commits)")

---

Tags

laravelbernskioldmedialaravel-matomo

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/bernskioldmedia-laravel-matomo/health.svg)

```
[![Health](https://phpackages.com/badges/bernskioldmedia-laravel-matomo/health.svg)](https://phpackages.com/packages/bernskioldmedia-laravel-matomo)
```

###  Alternatives

[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k9.9M90](/packages/dedoc-scramble)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.3M42](/packages/spatie-laravel-pdf)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

815320.5k3](/packages/defstudio-telegraph)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3913.7k](/packages/rawilk-profile-filament-plugin)[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

5019.3k](/packages/simplestats-io-laravel-client)[spatie/laravel-github-webhooks

Handle GitHub webhooks in a Laravel application

93157.3k5](/packages/spatie-laravel-github-webhooks)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
