Download the PHP package fyrndly/laravel-matomo-tracker without Composer

On this page you can find all versions of the php package fyrndly/laravel-matomo-tracker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-matomo-tracker

Laravel Matomo Tracker

A seamless and lightweight Matomo Analytics integration for Laravel application tracking. This package wraps the official Matomo PHP Tracker to provide a Laravel-friendly syntax, including Facades, auto-configuration, and background processing.

Features

Installation

You can install the package via composer:

The package will automatically register its service provider and facade.

Configuration

First, publish the configuration file:

Then, add your Matomo details to your .env file:

Configuration Options

Usage

Using the Facade

Enhanced Event Tracking

The event method supports complex data. If you pass an array or object to the $payload parameter, it will be automatically JSON-encoded and Base64-encoded for safe storage in Matomo.

Livewire & Filament Auto-Tracking

You can effortlessly track page views in your Livewire components or Filament pages by simply including the MatomoTrackView trait. It hooks into the component's lifecycle and automatically resolves the page title.

Note: This trait smartly looks for $pageTitle, $title, $heading properties, or getTitle(), getHeading(), getRecordTitle() methods (perfect for Filament v3).

High Traffic Handling (Queue)

For high-traffic applications, it is highly recommended to enable the queue to prevent API latency from affecting the user experience.

  1. Set MATOMO_QUEUE=true in your .env.
  2. Ensure your QUEUE_CONNECTION is not set to sync.
  3. Run your queue worker: php artisan queue:work.

Custom Dimensions

You can set custom dimensions before tracking:

Manual User ID

If you need to manually set or override the User ID for a specific request:

Accessing the Raw Tracker

If you need to access methods directly from the underlying MatomoTracker instance:

Credits

License

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


All versions of laravel-matomo-tracker with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.0
matomo/matomo-php-tracker Version ^3.4
illuminate/support Version ^8.0|^9.0|^10.0|^11.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package fyrndly/laravel-matomo-tracker contains the following files

Loading the files please wait ...