# Matomo PHP Tracker 4.0

A new major version of the PHP client for the Matomo Analytics tracking API, now with strict types.

It needs PHP 8.1 or later. The default request timeouts drop from minutes to seconds, so a slow Matomo server cannot block your page. It can also track requests from known AI bots.

- Made by: [Matomo](https://github.com/matomo-org)
- Shipped: 27/07/2026
- Date from: [release](https://github.com/matomo-org/matomo-php-tracker/releases/tag/4.0.0)
- Source: [github.com/matomo-org/matomo-php-tracker](https://github.com/matomo-org/matomo-php-tracker)
- Install: `composer require matomo/matomo-php-tracker`
- Licence: BSD-3-Clause
- Stack: plain PHP
- Topics: APIs
- Checked: 03/11/2026
- Added: 03/11/2026

## Badge

Listed here? Add this badge to your README:

```markdown
[![Featured on phplives.dev](https://phplives.dev/badge.svg)](https://phplives.dev/entries/matomo-php-tracker-4-0/)
```

See more at [phplives.dev](https://phplives.dev)
