hellorse/sylius-better-seo-plugin

Support for SEO metadata on products

Installs: 17 158

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 22

Type:sylius-plugin

2.0.2 2023-03-22 17:48 UTC

This package is auto-updated.

Last update: 2024-12-22 21:45:23 UTC


README

Scrutinizer Code Quality Build Status

Sylius Better SEO Plugin

  • Adds configurable SEO meta tags, image and Google rich snippets to product pages.

  • Adds configurable SEO meta tags and image to taxon pages.

Installation

  1. Require plugin with composer:

    composer require joppedc/sylius-better-seo-plugin:^1.0
  2. Add plugin class to your bundles.php.

    JoppeDc\SyliusBetterSeoPlugin\SyliusBetterSeoPlugin::class => ['all' => true],

    or appkernel.php

    $bundles = [
       new \JoppeDc\SyliusBetterSeoPlugin\SyliusBetterSeoPlugin(),
    ];
  3. Import resources:

    imports:
        - { resource: "@SyliusBetterSeoPlugin/Resources/config/config.yaml" }
  4. Override Product and Taxon resource:

    You need to add HasSeoInterface and add SeoTrait to Product and Taxon entity.

    sylius_product:
        resources:
            product:
                classes:
                    model: App\Entity\Product
    
    sylius_taxonomy:
        resources:
            taxon:
                classes:
                    model: App\Entity\Taxon
  5. Finish the installation by updating the database schema

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

Examples

Kitten

Kitten

Kitten

Documentation

License

The MIT License (MIT)

Copyright © 2019 Joppe De Cuyper