Skip to content

Setono/sylius-seo-plugin

Repository files navigation

Sylius SEO Plugin

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

About

The missing SEO plugin for Sylius

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project