composedcreative/envvaluereplace

Adds the 'envValueReplace' twig filter to Craft CMS projects

Maintainers

Package info

github.com/composedcreative/craft-envvaluereplace

Type:craft-plugin

pkg:composer/composedcreative/envvaluereplace

Statistics

Installs: 22

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.1.0 2016-06-02 20:34 UTC

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)