ikuzostudio / matomo-plugin
Integrate Matomo ecommerce tracking into Sylius.
Installs: 474
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:sylius-plugin
Requires
- php: ^8.0
- matomo/matomo-php-tracker: ^3.1
- sylius/sylius: ^1.11
Requires (Dev)
- behat/behat: ^3.6.1
- behat/mink-selenium2-driver: ^1.4
- dmore/behat-chrome-extension: ^1.3
- dmore/chrome-mink-driver: ^2.7
- friends-of-behat/mink: ^1.8
- friends-of-behat/mink-browserkit-driver: ^1.4
- friends-of-behat/mink-debug-extension: ^2.0.0
- friends-of-behat/mink-extension: ^2.4
- friends-of-behat/page-object-extension: ^0.3
- friends-of-behat/suite-settings-extension: ^1.0
- friends-of-behat/symfony-extension: ^2.1
- friends-of-behat/variadic-extension: ^1.3
- friendsofsymfony/oauth-server-bundle: ^1.6 || >2.0.0-alpha.0 ^2.0@dev
- phpspec/phpspec: ^7.0
- phpstan/extension-installer: ^1.0
- phpstan/phpstan: 0.12.99
- phpstan/phpstan-doctrine: 0.12.33
- phpstan/phpstan-strict-rules: ^0.12.0
- phpstan/phpstan-webmozart-assert: 0.12.12
- phpunit/phpunit: ^9.5
- polishsymfonycommunity/symfony-mocker-container: ^1.0
- sensiolabs/security-checker: ^6.0
- sylius-labs/coding-standard: ^4.0
- symfony/browser-kit: ^5.4
- symfony/debug-bundle: ^5.4
- symfony/dotenv: ^5.4
- symfony/intl: ^5.4
- symfony/web-profiler-bundle: ^5.4
- vimeo/psalm: 4.7.1
This package is auto-updated.
Last update: 2025-02-23 17:08:26 UTC
README
Matomo Plugin
Integrate Matomo ecommerce tracking into Sylius.
/!\ Currently in alpha /!\
Quickstart
$ composer require ikuzostudio/matomo-plugin
Add plugin dependencies to your config/bundles.php
file:
return [ // ... Ikuzo\SyliusMatomoPlugin\IkuzoSyliusMatomoPlugin::class => ['all' => true], ];
Import required config in your config/packages/_sylius.yaml
file:
# config/packages/_sylius.yaml imports: ... - { resource: "@IkuzoSyliusMatomoPlugin/Resources/config/app/config.yaml"}
Extend your Channel entity
// [...] use Sylius\Component\Core\Model\Channel as BaseChannel; use Ikuzo\SyliusMatomoPlugin\Model\MatomoChannelInterface; use Ikuzo\SyliusMatomoPlugin\Model\MatomoChannelTrait; /** * @ORM\Table(name="sylius_channel") * @ORM\Entity() */ class Channel extends BaseChannel implements MatomoChannelInterface { use MatomoChannelTrait; }
Update your database
$ bin/console doctrine:schema:update --force
Then configure your credentials from channel form