ikuzostudio/sendinblue-plugin

Sendinblue plugin for Sylius.


README

68747470733a2f2f64656d6f2e73796c6975732e636f6d2f6173736574732f73686f702f696d672f6c6f676f2e706e67

SendInBlue Plugin

Integrate SendInBlue into Sylius.

/!\ Currently in alpha /!\

Quickstart

$ composer require ikuzostudio/sendinblue-plugin

Add plugin dependencies to your config/bundles.php file:

return [
  // ...
  Ikuzo\SyliusSendinbluePlugin\IkuzoSyliusSendinbluePlugin::class => ['all' => true],
];

Import required config in your config/packages/_sylius.yaml file:

# config/packages/_sylius.yaml

imports:
  ...
  - { resource: "@IkuzoSyliusSendinbluePlugin/Resources/config/app/config.yaml" }

Extend your Channel entity

// [...]
use Sylius\Component\Core\Model\Channel as BaseChannel;
use Ikuzo\SyliusSendinbluePlugin\Model\SendinblueChannelInterface;
use Ikuzo\SyliusSendinbluePlugin\Model\SendinblueChannelTrait;

/**
 * @ORM\Table(name="sylius_channel")
 * @ORM\Entity()
 */
class Channel extends BaseChannel implements SendinblueChannelInterface
{
  use SendinblueChannelTrait;
}

Update your database

$ bin/console doctrine:schema:update --force

config.png