Use composer to manage your matomo plugins.
# Install the `mpl/composer-plugin` to enable the matomo plugin library
composer require mpl/composer-plugin
# Show available plugins
composer search mpl/
composer search mpl-free
composer search mpl-paid
# Add a plugin from the matomo package repository
# Names follow the following lowercase format: `mpl/{owner}-{name}`
composer require mpl/matomo-org-forcessl
If you'd like to manage your paid plugins with composer, you must provide your token via the bearer.mpl
config option
composer config --global --auth bearer.mpl {YOUR_TOKEN}
- Q: I deleted composer.lock and my vendor directory and now I can't run composer install
- A:
mpl/composer-plugin
use a custom repository, so it must be present for any othermpl/
dependencies to resolve. Try:- Removing any
mpl/*
require
orrequire-dev
entries other thanmpl/composer-plugin
- Run
composer update
- Add back any removed requirements.
- Removing any