Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/joppedc/syliusbetterseoplugin
- Owner: JoppeDC
- License: mit
- Created: 2019-10-07T18:48:25.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-03T10:20:06.000Z (over 1 year ago)
- Last Synced: 2024-12-09T15:46:22.642Z (15 days ago)
- Topics: php, seo-optimization, sylius, sylius-plugin, symfony
- Language: PHP
- Homepage:
- Size: 97.7 KB
- Stars: 22
- Watchers: 2
- Forks: 22
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
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
## Documentation
* [Local development](docs/LOCAL_DEVELOPMENT.md)
## License
[The MIT License (MIT)](LICENSE)
Copyright © 2019 Joppe De Cuyper