composedcreative / envvaluereplace
Adds the 'envValueReplace' twig filter to Craft CMS projects
Package info
github.com/composedcreative/craft-envvaluereplace
Type:craft-plugin
pkg:composer/composedcreative/envvaluereplace
0.1.0
2016-06-02 20:34 UTC
Requires
- composer/installers: ~1.0
This package is not auto-updated.
Last update: 2026-03-23 19:55:58 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)