sylius/theme-bundle
Sylius Theme Bundle brings theme management to Symfony apps. Define and switch themes, organize templates and assets per theme, and build storefronts with clean overrides. Part of the Sylius ecosystem, with docs included and MIT licensed.
composer require sylius/theme-bundle
You need to enable the bundle inside the kernel, usually at the end of bundle list.
# config/bundles.php
return [
\Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
\Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
// Other bundles...
\Sylius\Bundle\ThemeBundle\SyliusThemeBundle::class => ['all' => true],
];
Please register the bundle after FrameworkBundle. This is important as we override default templating, translation and assets logic.
In order to store your themes metadata in the filesystem, add the following configuration:
sylius_theme:
sources:
filesystem: ~
How can I help you explore Laravel packages today?