composedcreative / envvaluereplace
Adds the 'envValueReplace' twig filter to Craft CMS projects
Installs: 22
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:craft-plugin
Requires
- composer/installers: ~1.0
This package is not auto-updated.
Last update: 2025-03-10 14:29:29 UTC
README
Installation
composer require composed/envvaluereplace
Example
Add the following to either the general or per-environment config/general.php
values
'envValueReplacements' => [
'search for' => 'replace with'
]
Then use in your template code
{% set test = "this string contains the search for value" %}
{{ test|envValueReplace }}
This example will output this string contains the replace with value
Roadmap
- Improve documentation (eg chained replacement example)