yireo / shopware6-twig-env
Expose ENV variables to Twig
Package info
github.com/yireo-shopware6/shopware6-twig-env
Type:shopware-platform-plugin
pkg:composer/yireo/shopware6-twig-env
1.0.0
2023-09-15 05:16 UTC
Requires
- shopware/core: ~6.4
This package is auto-updated.
Last update: 2026-02-17 12:33:31 UTC
README
Extremely simple Shopware 6 plugin that adds a Twig variable env with all environment variables. Mainly a proof of concept, but perhaps handy during
development.
Installation
composer require yireo/shopware6-twig-env --dev bin/console plugin:refresh bin/console plugin:install --activate YireoTwigEnv
Usage
Just add a {{ dump() }} somewhere to your Twig templates. You'll see a variable env being added to the page.