PHP code example of ikuzostudio / matomo-plugin
1. Go to this page and download the library: Download ikuzostudio/matomo-plugin library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ikuzostudio / matomo-plugin example snippets
return [
// ...
Ikuzo\SyliusMatomoPlugin\IkuzoSyliusMatomoPlugin::class => ['all' => true],
];
// [...]
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;
}