setono/sylius-seo-plugin

SEO plugin for your Sylius store

Fund package maintenance!
Setono

Installs: 2 580

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 1

Type:sylius-plugin

v1.0.0-beta.2 2025-03-24 13:42 UTC

This package is auto-updated.

Last update: 2025-03-24 14:16:24 UTC


README

Latest Version Software License Build Status Code Coverage Mutation testing

The intention of this plugin is to add all the missing SEO features to your Sylius store.

For now this plugin has:

  • Schema.org data generation
  • robots.txt file creation and management

Installation

composer require setono/sylius-seo-plugin

Import routing

# config/routes/setono_sylius_seo.yaml
setono_sylius_seo:
    resource: "@SetonoSyliusSEOPlugin/Resources/config/routes.yaml"

Implement ChannelInterface

<?php
declare(strict_types=1);

namespace App\Entity\Channel;

use Doctrine\ORM\Mapping as ORM;
use Setono\SyliusSEOPlugin\Model\ChannelInterface;
use Setono\SyliusSEOPlugin\Model\ChannelTrait;
use Sylius\Component\Core\Model\Channel as BaseChannel;

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

Update your database schema

php bin/console doctrine:migrations:diff
php bin/console doctrine:migrations:migrate -n