Download the PHP package agence-adeliom/sylius-happy-cms-plugin without Composer
On this page you can find all versions of the php package agence-adeliom/sylius-happy-cms-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package sylius-happy-cms-plugin
Overview
Happy CMS is a CMS plugin for Sylius with a visual page builder in the back office (Sylius admin). Merchants and content editors build and edit pages from content blocks and see a live preview of the shop page, without writing code. Developers keep full control: pages are Sylius routable resources, blocks are Symfony form types and Twig templates.
It works with Sylius 1.13, 1.14, 2.0, 2.1, 2.2 and 2.3: each Sylius version has its own plugin branch (see Versions).
Back-office page builder
- Visual editor in the Sylius admin: compose pages with flexible content blocks (text, WYSIWYG, image, gallery, CTA, accordion, key features…).
- Live preview: the real shop page is rendered next to the editor, in an iframe, while you edit.
- Responsive preview: switch between desktop, tablet and mobile resolutions.
- Per-locale editing: edit and preview every translation of a page.
- Shared blocks: reusable blocks (reassurance banner, footer CTA…) used across several pages.
CMS features
- Pages and custom routable resources: create your own entities (blog, FAQ, brand pages, landing pages…) with their own URLs, routes, templates and logic.
- Media Management: organize images, videos and documents used in CMS pages, built on the Flysystem storage abstraction layer.
- SEO: meta title, meta description, robots, sitemap and URL management for every page.
- Multilingual: full support for Sylius locales and translated URLs.
- Menu Management: hierarchical menus for the shop navigation.
- Custom blocks: use the default blocks, override them, or create your own.
- Developer helpers: Maker commands to generate entities, repositories, admin CRUD and blocks.
- AI: AI assistant to help write page content (requires an API key).
- CRUD: integrated with Sylius Easy CRUD Plugin for simplified Sylius resource CRUD management.
Installation and documentation
- Pick the plugin version matching your Sylius version
- Install this plugin
- Explore documentation
Versions
The plugin supports Sylius 1.x and every Sylius 2.x minor release, not only Sylius 2.3. The
2.3.xbranch (the one you are probably reading) targets Sylius 2.3 only. Older Sylius versions are supported by older plugin versions, each maintained on its own Git branch with its own README.
Pick the line matching the Sylius version of your project. Running composer require agence-adeliom/sylius-happy-cms-plugin without a constraint also lets Composer select the compatible version.
| Your Sylius version | Plugin version | Composer constraint | Git branch | PHP | Symfony | Maintained | Installation guide |
|---|---|---|---|---|---|---|---|
| 2.3 | 2.3.x | ^2.3 |
2.3.x |
8.4, 8.5 | 7.4, 8.x | Yes | This README |
| 2.1, 2.2 | 2.1.x | ~2.1.0 |
2.1.x |
8.3, 8.4, 8.5 | 7.4 | Yes | 2.1.x README |
| 2.0 | 2.0.x | ~2.0.0 |
2.0.x |
8.2, 8.3, 8.4 | 6.4, 7.x | No | 2.0.x README |
| 1.13, 1.14 | 1.14.x | ^1.14 |
1.x |
8.2, 8.3, 8.4 | 6.4, 7.x | No | v1.14.12 README |
Upgrading between versions
- Sylius 1.x → Sylius 2.0 (plugin 1.14 → 2.0, BC break): Sylius 2 migration guide.
- Channels (optional channel attachment for menus, shared blocks and configs, no BC break): update note.
- Plugin 2.0 → 2.1 (new content model persistence and new page builder, BC break): content block migration guide.
- Plugin 2.1 → 2.3 (Sylius 2.3 / Symfony 8 support): upgrade Sylius to 2.3, then require
agence-adeliom/sylius-happy-cms-plugin:^2.3.
Feature preview
Installation
These steps install the 2.3.x version (Sylius 2.3). For another Sylius version, follow the installation guide linked in the Versions table.
1. Install via Composer
2. Enable the Bundle
Add the plugin to config/bundles.php:
3. Import Configuration
In config/packages/_sylius.yaml:
4. Import Routes
In config/routes.yaml:
The admin routes (config/routes.yaml) are served under the Sylius admin path
(/%sylius_admin.path_name%, /admin by default). If your admin uses another prefix or its own host, import the
prefix-less files instead of config/routes.yaml and set your own prefix / host:
5. Configure your firewall to protect preview routes
All admin users with ROLE_ALLOWED_TO_SWITCH AND ROLE_HAPPY_CMS_CONTENT_BUILDER will be able to preview CMS routable entities.
Required for the page builder. Preview URLs (
?happy_cms_preview=1) are rendered on the shop side. Without this firewall, the admin session is not loaded there and the preview fails withAccess Denied to preview content document. Theadmin_happy_cms_content_builderfirewall must be declared before theshopfirewall (the first matching firewall wins), and therole_hierarchyentry below is mandatory.
In config/packages/security.yaml
5.1 Allow the page builder iframes (X-Frame-Options)
The page builder displays admin and front pages (preview) inside iframes, so every response must allow same-origin framing.
Send a single X-Frame-Options: SAMEORIGIN header, from one source only:
-
If you use NelmioSecurityBundle, use
SAMEORIGIN, notDENY, on the whole site:and remove the Sylius subscriber, which also sets this header on every response (
src/Kernel.php): - Remove
Header set X-Frame-Options SAMEORIGINfrompublic/.htaccess(Sylius recipe, Apache) and do not set the header in the web server (Caddyfile, nginx) or the ingress either. - Serve the admin and the shop on the same host, otherwise
SAMEORIGINblocks the preview (use CSPframe-ancestorsin that case).
Two conflicting headers (DENY, SAMEORIGIN) make the browser fall back to DENY, and the page builder breaks with:
Check with curl -skI https://your-shop.local/en_US/ | grep -i x-frame-options: exactly one SAMEORIGIN line is expected.
5. Generate default files in your project (entities, repositories and admin classes) :
Actually, we don't have Symfony recipes, so we created a command to generate files automatically.
This command will :
- Create all entities, repositories and admin class
- update config/routes.yaml by adding route properly declared
- update config/packages/sylius_resource.yaml by adding sylius routes properly declared
- update config/packages/sylius_happy_cms.yaml by adding new files properly declared
If something goes wrong, you can do those actions manually, check detailed configuration.
6. Install Assets
7. Update database
8. (Optional) Configure AI Development Guides
If you're using AI assistants (like Claude Code, GitHub Copilot, or Cursor), configure them to use the plugin's specialized guides:
For Claude Code users:
Create or update CLAUDE.md in your project root:
For other AI assistants:
Create or update .cursorrules, AGENTS.md, or your AI configuration file with similar content pointing to the guides in vendor/agence-adeliom/sylius-happy-cms-plugin/docs/agents/.
Add "See @CLAUDE.md"
Symfony AI Mate tools
With Symfony AI Mate and sylius/sylius-mate-extension installed
(composer require --dev sylius/sylius-mate-extension, then vendor/bin/mate discover), the plugin exposes read-only
debugging tools to your AI assistant, next to the easy_crud_* tools of the easy-crud plugin:
| Tool | Answers |
|---|---|
happy_cms_match_url |
Which route serves a URL (CMS or Symfony), the content behind a CMS route and its publication state; on a 404, the CMS candidates and the trailing slash variant |
happy_cms_list_blocks |
The registered flex and shared blocks (stored block_type, template, assets), or those allowed in the flexible content fields of a resource |
happy_cms_content_blocks |
The blocks stored by an entity (JSON flexible content and page builder), each one rendered on its own with its error; or the block types stored by every entity of a resource |
They boot the application kernel in dev and, except happy_cms_list_blocks, read the database. See
config/mate/INSTRUCTIONS.md.
Documentation
- Override default Sylius homepage
- Routing
- Seo
- Medias
- Blocks
- Menu
- Channels
- AI
- Full plugin configuration
- Contribution
Start by read the documentation, then you can :
- Use bundles commands to create new routable resources (blog, faq, brand pages, etc.) see here
- Use bundle commands to create new content blocks (flex or shared)
All versions of sylius-happy-cms-plugin with dependencies
ext-exif Version *
ext-intl Version *
ext-json Version *
agence-adeliom/sylius-easy-crud-plugin Version ^2.3.2
emileperron/tinymce-bundle Version ^3.0
illuminate/support Version ^v11.33.2
james-heinrich/getid3 Version ^1.9
league/flysystem-bundle Version ^2.4.0 || ^3.0
liip/imagine-bundle Version ^2.8
maennchen/zipstream-php Version ^3.1
presta/sitemap-bundle Version ^v4.1.1
stof/doctrine-extensions-bundle Version ^1.6
sylius/sylius Version ^2.3
symfony-cmf/routing-bundle Version ^3.0
symfony/filesystem Version ^7.4 || ^8.0
symfony/options-resolver Version ^7.4 || ^8.0
symfony/property-access Version ^7.4 || ^8.0
symfony/serializer Version ^7.4 || ^8.0