Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joppedc/syliusbetterseoplugin

SEO Plugin for Sylius products and taxons
https://github.com/joppedc/syliusbetterseoplugin

php seo-optimization sylius sylius-plugin symfony

Last synced: 9 days ago
JSON representation

SEO Plugin for Sylius products and taxons

Awesome Lists containing this project

README

        





[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/JoppeDC/SyliusBetterSeoPlugin/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/JoppeDC/SyliusBetterSeoPlugin/?branch=master)
[![Build Status](https://travis-ci.org/JoppeDC/SyliusBetterSeoPlugin.svg?branch=master)](https://travis-ci.org/JoppeDC/SyliusBetterSeoPlugin)

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:

```bash
composer require joppedc/sylius-better-seo-plugin:^1.0
```

2. Add plugin class to your `bundles.php`.

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

or `appkernel.php`

```php
$bundles = [
new \JoppeDc\SyliusBetterSeoPlugin\SyliusBetterSeoPlugin(),
];
```

3. Import resources:

```yaml
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.

```yaml
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

* [Local development](docs/LOCAL_DEVELOPMENT.md)

## License

[The MIT License (MIT)](LICENSE)

Copyright © 2019 Joppe De Cuyper