PHPackages                             core23/matomo-bundle - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. core23/matomo-bundle

Abandoned → [nucleos/matomo-bundle](/?search=nucleos%2Fmatomo-bundle)Symfony-bundle[Logging &amp; Monitoring](/categories/logging)

core23/matomo-bundle
====================

This bundle provides a block service for using Matomo inside symfony applications.

4.4.0(1w ago)63312[1 issues](https://github.com/nucleos/NucleosMatomoBundle/issues)[1 PRs](https://github.com/nucleos/NucleosMatomoBundle/pulls)MITPHPPHP ^8.3

Since May 30Pushed 1w ago1 watchersCompare

[ Source](https://github.com/nucleos/NucleosMatomoBundle)[ Packagist](https://packagist.org/packages/core23/matomo-bundle)[ Docs](https://nucleos.rocks)[ GitHub Sponsors](https://github.com/sponsors/core23)[ Fund](https://ko-fi.com/core23)[ RSS](/packages/core23-matomo-bundle/feed)WikiDiscussions 4.5.x Synced 3d ago

READMEChangelog (10)Dependencies (50)Versions (42)Used By (0)

NucleosMatomoBundle
===================

[](#nucleosmatomobundle)

[![Latest Stable Version](https://camo.githubusercontent.com/72cc3a377485956f10c1b0ab8c6d518942a8969fc1742c536f0c958dfa35d64d/68747470733a2f2f706f7365722e707567782e6f72672f6e75636c656f732f6d61746f6d6f2d62756e646c652f762f737461626c65)](https://packagist.org/packages/nucleos/matomo-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/5c9597e367f1ca2b80335e513dd3424bbb18f4052b77ba82b8838cf0a9dcb78c/68747470733a2f2f706f7365722e707567782e6f72672f6e75636c656f732f6d61746f6d6f2d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/nucleos/matomo-bundle)[![License](https://camo.githubusercontent.com/d24a51b0fa48233ab5fecb5a984709a65b0e8c7eb2ce406ca0bff1d2fd523241/68747470733a2f2f706f7365722e707567782e6f72672f6e75636c656f732f6d61746f6d6f2d62756e646c652f6c6963656e7365)](https://packagist.org/packages/nucleos/matomo-bundle)

[![Total Downloads](https://camo.githubusercontent.com/98e8bfc3cd8b1cd82dac438673c3a2f9db5733a74ceb7b7b9cd05c7e63e20548/68747470733a2f2f706f7365722e707567782e6f72672f6e75636c656f732f6d61746f6d6f2d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/nucleos/matomo-bundle)[![Monthly Downloads](https://camo.githubusercontent.com/bf730d478f48b96797cc98c502f257d23282aeb0f0c0ba5d4372f146f5ed6765/68747470733a2f2f706f7365722e707567782e6f72672f6e75636c656f732f6d61746f6d6f2d62756e646c652f642f6d6f6e74686c79)](https://packagist.org/packages/nucleos/matomo-bundle)[![Daily Downloads](https://camo.githubusercontent.com/3779146185a624db1b2e04b77788557bbc2b82ad4b8968044cdee23d8df47587/68747470733a2f2f706f7365722e707567782e6f72672f6e75636c656f732f6d61746f6d6f2d62756e646c652f642f6461696c79)](https://packagist.org/packages/nucleos/matomo-bundle)

[![Continuous Integration](https://github.com/nucleos/NucleosMatomoBundle/actions/workflows/continuous-integration.yml/badge.svg?event=push)](https://github.com/nucleos/NucleosMatomoBundle/actions?query=workflow%3A%22Continuous+Integration%22+event%3Apush)[![Code Coverage](https://camo.githubusercontent.com/4256ece2dcdd3d9ea2c6251663408bf5d3e561c0e4934c621568f9797868420c/68747470733a2f2f636f6465636f762e696f2f67682f6e75636c656f732f4e75636c656f734d61746f6d6f42756e646c652f67726170682f62616467652e737667)](https://codecov.io/gh/nucleos/NucleosMatomoBundle)

This bundle provides a wrapper for using the [matomo](https://matomo.org) (Piwik) statistic inside the symfony sonata-project.

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

[](#installation)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
composer require nucleos/matomo-bundle
# To define a default http client and message factory
composer require symfony/http-client nyholm/psr7

```

### Enable the Bundle

[](#enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in `config/bundles.php` file of your project:

```
// config/bundles.php

return [
    // ...
    Nucleos\MatomoBundle\NucleosMatomoBundle::class => ['all' => true],
];
```

### Assets

[](#assets)

It is recommended to use [webpack](https://webpack.js.org/) / [webpack-encore](https://github.com/symfony/webpack-encore)to include the `MatomoTable.js` file in your page. These file is located in the `assets` folder.

You can use [npm](https://www.npmjs.com/) or [yarn](https://yarnpkg.com/) to load the library:

Usage
-----

[](#usage)

Define a http client in your configuration.

```
# config/packages/nucleos_matomo.yaml

nucleos_matomo:
    http:
        client: 'httplug.client'
        message_factory: 'nyholm.psr7.psr17_factory'
```

### Render tracking code

[](#render-tracking-code)

```
{{ sonata_block_render({ 'type': 'nucleos_matomo.block.tracker' }, {
    'host': 'http://matomo.example.com',
    'site': 1
}) }}
```

### Render statistic graph

[](#render-statistic-graph)

```
{{ sonata_block_render({ 'type': 'nucleos_matomo.block.statistic' }, {
    'host': 'http://matomo.example.com',
    'site': 1,
    'token': 'MATOMO_API_TOKEN'
}) }}
```

License
-------

[](#license)

This bundle is under the [MIT license](LICENSE.md).

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance94

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity90

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~103 days

Recently: every ~50 days

Total

29

Last Release

13d ago

Major Versions

1.1.0 → 2.0.02018-12-30

2.3.0 → 3.0.02020-06-26

3.5.x-dev → 4.0.02023-10-12

PHP version history (7 changes)1.0PHP ^7.1

2.0.0PHP ^7.2

3.0.0PHP ^7.3

3.2.0PHP ^7.3 || ^8.0

3.3.0PHP ^8.0

3.4.0PHP ^8.1

4.3.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/46179d0f1a863a1a71c634a413d857f8428ad9a8273cd065ba4f0e864730dde9?d=identicon)[core23](/maintainers/core23)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (636 commits)")[![nucleos-bot](https://avatars.githubusercontent.com/u/60489587?v=4)](https://github.com/nucleos-bot "nucleos-bot (586 commits)")[![core23](https://avatars.githubusercontent.com/u/3440437?v=4)](https://github.com/core23 "core23 (258 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (52 commits)")[![kodiakhq[bot]](https://avatars.githubusercontent.com/in/29196?v=4)](https://github.com/kodiakhq[bot] "kodiakhq[bot] (37 commits)")[![renovate-bot](https://avatars.githubusercontent.com/u/25180681?v=4)](https://github.com/renovate-bot "renovate-bot (6 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

---

Tags

bundlehacktoberfestmatomophppiwiksonatasonata-blockstatisticsymfonysymfony-bundlesymfonybundlesymfony-uxpiwikmatomowidgetblocksonatastatisticsonata-block

### Embed Badge

![Health badge](/badges/core23-matomo-bundle/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sonata-project/admin-bundle

The missing Symfony Admin Generator

2.1k19.0M299](/packages/sonata-project-admin-bundle)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)

PHPackages © 2026

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