setono/sylius-mailer-plugin

Setono example plugin for Sylius.

Fund package maintenance!
Setono

Installs: 111

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:sylius-plugin

dev-master / 1.0.x-dev 2024-10-07 12:50 UTC

This package is auto-updated.

Last update: 2024-11-07 13:00:19 UTC


README

Latest Version Software License Build Status Code Coverage Mutation testing

Enhance your Sylius store's mailing capabilities with this plugin. For now the plugin provides a logging mechanism for all emails sent from your store.

Installation

  1. Require the plugin with Composer:

    composer require setono/sylius-mailer-plugin
  2. Add the plugin to your config/bundles.php file:

    return [
        // ...
    
        Setono\SyliusMailerPlugin\SetonoSyliusMailerPlugin::class => ['all' => true],
        Sylius\Bundle\GridBundle\SyliusGridBundle::class => ['all' => true],
    
        // ...
    ];

    Remember to add the plugin before the SyliusGridBundle.

  3. Import the plugin's routing configuration:

    # config/routes/setono_sylius_mailer.yaml
    setono_sylius_mailer:
        resource: "@SetonoSyliusMailerPlugin/Resources/config/routes.yaml"
  4. Run the database migrations:

    bin/console doctrine:migrations:diff
    bin/console doctrine:migrations:migrate

Usage

After installation, the plugin will automatically log all emails sent from your Sylius store. You can view the logged emails in the admin panel under the "Mailer > Sent Emails" section.