PHPackages                             oscarotero/matomo-tracker - 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. oscarotero/matomo-tracker

ActiveLibrary[API Development](/categories/api)

oscarotero/matomo-tracker
=========================

A matomo-tracker url generator compatible with PSR-7

22792PHP

Since Dec 16Pushed 4y ago2 watchersCompare

[ Source](https://github.com/oscarotero/matomo-tracker)[ Packagist](https://packagist.org/packages/oscarotero/matomo-tracker)[ RSS](/packages/oscarotero-matomo-tracker/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Matomo tracker
==============

[](#matomo-tracker)

[![Build Status](https://camo.githubusercontent.com/07eee4b811c28775d0d432a870a9c59a60e4e3d048369e27e4190e4c74e80fc5/68747470733a2f2f7472617669732d63692e636f6d2f6f736361726f7465726f2f6d61746f6d6f2d747261636b65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/oscarotero/matomo-tracker)

Simple library to generate [Matomo](https://matomo.org/) tracker urls that you can use to insert tracking images in your site. It's compatible with [PSR-7 `ServerRequestInterfaces`](https://www.php-fig.org/psr/psr-7/#321-psrhttpmessageserverrequestinterface)

Requirements
------------

[](#requirements)

- PHP &gt;= 7.0

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

[](#installation)

This package is installable and autoloadable via Composer as [oscarotero/matomo-tracker](https://packagist.org/packages/oscarotero/matomo-tracker).

```
composer require oscarotero/matomo-tracker
```

Example
-------

[](#example)

```
use MatomoTracker\Url;

$url = Url::createFromServerRequest($serverRequest, 'https://analytics.example.com/piwik.php', 1);

$url->title('Page title')
    ->userId($user->getId());

echo sprintf('', (string) $url);
```

Please see [CHANGELOG](CHANGELOG.md) for more information about recent changes.

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

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 Bus Factor1

Top contributor holds 94.1% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/e99df56b617f4af8cf0556a51a0ca20c7420104920c57d7e9eab093f92bb744f?d=identicon)[oscarotero](/maintainers/oscarotero)

---

Top Contributors

[![oscarotero](https://avatars.githubusercontent.com/u/377873?v=4)](https://github.com/oscarotero "oscarotero (16 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

---

Tags

matomotracking

### Embed Badge

![Health badge](/badges/oscarotero-matomo-tracker/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)[pixelant/pxa-social-feed

Add Facebook, Instagram, and Twitter feeds to your site.

2349.3k](/packages/pixelant-pxa-social-feed)

PHPackages © 2026

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