samsmithcodes/matomo-connector

This is a Laravel package to connect to Matomo.

v1.0.0 2025-07-23 15:53 UTC

This package is auto-updated.

Last update: 2025-07-29 12:32:50 UTC


README

This package allows you to connect your application to Matomo.

Installing

To install this package, run the following composer command:

composer require samsmithcodes/matomo-connector

Publish Files

You can publish the config and view files to your application for customization, just run the following commands:

php artisan vendor:publish --tag=matomo-connector-config
php artisan vendor:publish --tag=matomo-connector-view

Connection Component

You need to add this component to your <head> block, it contains the code required to connect to Matomo.

<x-matomo-connector />

Development

To develop the package, you should first setup a clean Laravel project and then create a new directory called packages/samsmithcodes.

Then, checkout this repository into that directory.

git clone git@github.com:samsmithcodes/matomo-connector.git

Install the package dependencies with composer install.

To install the package to test, go back to the root of the Laravel project you setup and add the following to the composer.json file.

"repositories": [
    {
        "type": "path",
        "url": "./packages/samsmithcodes/matomo-connector",
        "options": {
            "symlink": true
        }
    }
],

Then, run the following composer command to install the package.

composer require samsmithcodes/matomo-connector:@dev