acseo / sylius-geo-plugin
Sylius plugin for Generative Engine Optimization: llms.txt, Markdown pages and sitemap for AI crawlers.
Package info
github.com/acseo/acseo-sylius-geo-plugin
Type:sylius-plugin
pkg:composer/acseo/sylius-geo-plugin
Requires
- php: ^8.2
- sylius/sylius: ^2.0
Requires (Dev)
- behat/behat: ^3.16
- dbrekelmans/bdi: ^1.4
- dmore/behat-chrome-extension: ^1.4
- dmore/chrome-mink-driver: ^2.9
- ekino/phpstan-banned-code: ^3.2
- friends-of-behat/mink: ^1.11
- friends-of-behat/mink-browserkit-driver: ^1.6
- friends-of-behat/mink-debug-extension: ^2.1
- friends-of-behat/mink-extension: ^2.7
- friends-of-behat/page-object-extension: ^0.3
- friends-of-behat/suite-settings-extension: ^1.1
- friends-of-behat/symfony-extension: ^2.6
- friends-of-behat/variadic-extension: ^1.6
- nyholm/psr7: ^1.8
- phpstan/phpstan: ^2.2
- phpstan/phpstan-doctrine: ^2.0
- phpstan/phpstan-strict-rules: ^2.0
- phpstan/phpstan-symfony: ^2.0
- phpstan/phpstan-webmozart-assert: ^2.0
- phpunit/phpunit: ^10.5
- sylius-labs/coding-standard: ^4.4
- sylius-labs/suite-tags-extension: ~0.2
- sylius/test-application: ^2.0.0@alpha
- symfony/browser-kit: ^6.4 || ^7.4
- symfony/debug-bundle: ^6.4 || ^7.4
- symfony/dotenv: ^6.4 || ^7.4
- symfony/http-client: ^6.4 || ^7.4
- symfony/intl: ^6.4 || ^7.4
- symfony/runtime: ^6.4 || ^7.4
- symfony/web-profiler-bundle: ^6.4 || ^7.4
- symfony/webpack-encore-bundle: ^2.2
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Generative Engine Optimization for Sylius. The plugin exposes a shop-aware llms.txt index and Markdown representations of catalog pages so AI crawlers can read accurate, public commerce data without guessing from HTML.
| Package | acseo/sylius-geo-plugin |
| Namespace | ACSEO\SyliusGeoPlugin |
| Requirements | PHP 8.3+, Sylius 2.0 to 2.3, Symfony 6.4 or 7.4; see compatibility |
Preview
llms.txt index of a channel locale, with the channel information, the crawler policy and links to the Markdown pages (the first 46 lines, cut with head; the host is the localhost channel of the test application):
Markdown page of a product, with price, availability, attributes, variants, images, taxons and the start of the JSON-LD (the first 60 lines, cut with head):
The canonical product URL answers HTML to browsers and Markdown to clients that prefer text/markdown (headers filtered with grep, Markdown body cut with head):
Markdown page of a taxon, served by negotiation on its canonical URL (complete output):
GEO sitemap, with line breaks added by sed and cut to 24 lines with head; it lists the product Markdown URLs first, then the taxon URLs:
acseo_sylius_geo_plugin:audit explains what a channel locale exports (the output is trimmed: it is filtered through sed, which keeps the first 20 lines, the exportable taxons and the first generated product URL):
Features
llms.txtper channel locale with products, taxons, channel information and crawler policy, plus a root/llms.txtredirect to the channel default locale.- GEO sitemap endpoints for search and AI crawlers.
- Markdown product pages with description, brand, price, stock, attributes, variants, images, taxons, canonical URL and optional JSON-LD.
- Markdown taxon pages with description, subcategories and canonical URL.
- HTTP content negotiation on canonical product and taxon URLs (
Accept: text/markdown). - Public Shop API GEO endpoints.
- HTTP cache headers on public GEO responses:
Cache-Control,ETagand conditional requests (304). - Visibility rules: only enabled entries of the current channel are exported, with exclusion by taxon subtree and by attribute code or value.
- Fine-grained configuration: catalog limits, endpoint opt-outs, stock strategy and price strategy.
- Symfony events before
llms.txt, product Markdown, taxon Markdown and HTTP response creation. - Extension points for custom product, taxon,
llms.txtand CMS page sections, and replaceable services behind interfaces. - Diagnostic and audit commands that explain the export state of a product, a taxon, a channel and a locale.
- Translated console output (English and French) and translatable crawler-facing texts.
Installation
composer require acseo/sylius-geo-plugin
Then follow docs/installation.md: bundle registration, configuration import and route registration.
Documentation
- Installation
- Configuration
- Endpoints and content negotiation
- Documentation examples
- Commands
- Diagnostics
- Extension points
- Compatibility policy
- Local development
- Contributing
- Security policy
- Changelog
- Upgrade notes
About ACSEO
ACSEO designs and delivers custom digital solutions, from consulting to web and mobile development, with expertise in Sylius e-commerce. Learn more: https://www.acseo.fr






