Download the PHP package setono/sylius-seo-plugin without Composer

On this page you can find all versions of the php package setono/sylius-seo-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sylius-seo-plugin

Sylius SEO Plugin

Latest Version Build Status Code Coverage Mutation testing

Add the SEO features that Sylius is missing — structured data, Open Graph metadata and a manageable robots.txt — with sensible defaults and zero template changes.

Once installed, the plugin automatically enriches your storefront's <head> on every page, so search engines and social networks understand your catalog out of the box.

Features

Requirements

Package Version
PHP >= 8.2
Symfony 6.4 or 7.4
Sylius ^2.0

Using Sylius 1.x? Use the 1.x branch (^1.0) instead.

Installation

1. Require the plugin

2. Register the plugin

3. Import the routing

4. Implement ChannelInterface

The plugin stores the robots.txt content on your channel. Implement the plugin's ChannelInterface and use the ChannelTrait on your Channel entity:

5. Update your database schema

That's it — structured data and Open Graph tags are now rendered on your storefront automatically.

Usage

Structured data & Open Graph

There is nothing to wire up in your templates. The plugin injects its output into the shop <head> via Sylius Twig Hooks, so visiting the homepage or a product page already produces the JSON-LD graph and the og:* meta tags. Use Google's Rich Results Test to verify the structured data.

robots.txt

Go to Admin → Channels → (edit a channel) and fill in the Robots.txt field. The content is served at /robots.txt for that channel's domain.

If a physical public/robots.txt file exists it is served by your web server and shadows this route. The admin form warns you when that is the case.

Configuration

All structured data features are enabled by default. The full configuration with its defaults:

To turn a feature off, disable it:

Extending

Add or override structured data

Each Schema.org type is built by a set of data mappers. To add a new fact, create a class implementing the relevant interface — it is autoconfigured and picked up automatically:

Schema.org type Interface to implement
Product Setono\SyliusSEOPlugin\DataMapper\Product\ProductDataMapperInterface
Product group Setono\SyliusSEOPlugin\DataMapper\ProductGroup\ProductGroupDataMapperInterface
Online store Setono\SyliusSEOPlugin\DataMapper\OnlineStore\OnlineStoreDataMapperInterface
Website Setono\SyliusSEOPlugin\DataMapper\Website\WebsiteDataMapperInterface

Events

After each object is added to the graph the plugin dispatches an event you can subscribe to in order to extend or replace the generated data:

Contributing

See the test application in tests/Application for a runnable Sylius store with the plugin installed.

License

This plugin is released under the MIT License.


All versions of sylius-seo-plugin with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
doctrine/orm Version ^2.0 || ^3.0
liip/imagine-bundle Version ^2.0
psr/event-dispatcher Version ^1.0
psr/log Version ^1.1 || ^2.0 || ^3.0
setono/composite-compiler-pass Version ^1.2
spatie/schema-org Version ^3.23.1
sylius/channel Version ^2.0
sylius/channel-bundle Version ^2.0
sylius/core Version ^2.0
sylius/core-bundle Version ^2.0
sylius/inventory Version ^2.0
sylius/locale Version ^2.0
sylius/product Version ^2.0
sylius/resource-bundle Version ^1.12
symfony/config Version ^6.4 || ^7.4
symfony/dependency-injection Version ^6.4 || ^7.4
symfony/event-dispatcher Version ^6.4 || ^7.4
symfony/form Version ^6.4 || ^7.4
symfony/http-foundation Version ^6.4 || ^7.4
symfony/http-kernel Version ^6.4 || ^7.4
symfony/routing Version ^6.4 || ^7.4
symfony/string Version ^6.4 || ^7.4
twig/twig Version ^3.0
webmozart/assert Version ^1.11
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package setono/sylius-seo-plugin contains the following files

Loading the files please wait ...