PHPackages                             composedcreative/envvaluereplace - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. composedcreative/envvaluereplace

ActiveCraft-plugin[Templating &amp; Views](/categories/templating)

composedcreative/envvaluereplace
================================

Adds the 'envValueReplace' twig filter to Craft CMS projects

0.1.0(9y ago)022GPL-3.0PHP

Since Jun 2Pushed 9y ago3 watchersCompare

[ Source](https://github.com/composedcreative/craft-envvaluereplace)[ Packagist](https://packagist.org/packages/composedcreative/envvaluereplace)[ RSS](/packages/composedcreative-envvaluereplace/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (3)Used By (0)

Environment Value Replacement Twig filter for Craft CMS
=======================================================

[](#environment-value-replacement-twig-filter-for-craft-cms)

Installation
------------

[](#installation)

`composer require composed/envvaluereplace`

Example
-------

[](#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
-------

[](#roadmap)

- Improve documentation (eg chained replacement example)

###  Health Score

24

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3579d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/659e352f849f66f1e11660565c08f3b0922c6496adb851d2cdeadab89dafb17e?d=identicon)[mike27cubes](/maintainers/mike27cubes)

---

Top Contributors

[![mike27cubes](https://avatars.githubusercontent.com/u/204885?v=4)](https://github.com/mike27cubes "mike27cubes (4 commits)")

### Embed Badge

![Health badge](/badges/composedcreative-envvaluereplace/health.svg)

```
[![Health](https://phpackages.com/badges/composedcreative-envvaluereplace/health.svg)](https://phpackages.com/packages/composedcreative-envvaluereplace)
```

###  Alternatives

[wp-bootstrap/wp-bootstrap-navwalker

A custom WordPress nav walker class to fully implement the Bootstrap 4 navigation style in a custom theme using the WordPress built in menu manager.

3.4k43.6k](/packages/wp-bootstrap-wp-bootstrap-navwalker)[silverstripe-themes/simple

The SilverStripe simple theme (default SilverStripe 3 theme)

411.3M8](/packages/silverstripe-themes-simple)[mediawiki/vector-skin

Modern version of the MonoBook skin

533.5k](/packages/mediawiki-vector-skin)[frozzare/digster

Twig templates for WordPress

107.1k](/packages/frozzare-digster)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
