PHPackages                             zizther/replace-variable - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. zizther/replace-variable

Abandoned → [zizther/craft-dynamic-variables](/?search=zizther%2Fcraft-dynamic-variables)ArchivedCraft-plugin[Utility &amp; Helpers](/categories/utility)

zizther/replace-variable
========================

Replace general or config variables, and global fields

1.0.1(5y ago)03MITPHP

Since May 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/zizther/craft-replace-variable)[ Packagist](https://packagist.org/packages/zizther/replace-variable)[ RSS](/packages/zizther-replace-variable/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (4)Versions (4)Used By (0)

Replace Variable plugin for Craft CMS 3.x
=========================================

[](#replace-variable-plugin-for-craft-cms-3x)

This plugin has been replaced with a cleaner more powerful plugin [Craft Dynamic Variables](https://github.com/zizther/craft-dynamic-variables)

Replace general or config variables, and global fields

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 3.0.0-beta.23 or later.

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

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require zizther/replace-variable

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Replace Variable.

Replace Variable Overview
-------------------------

[](#replace-variable-overview)

Can match general or config variables, and global fields For example:

- {siteName}
- {config.general.custom.variableName}
- {config.customConfigFile.variableName}
- {globalHandle.fieldHandle}

Using Replace Variable
----------------------

[](#using-replace-variable)

Filter `{{ 'something goes here {globalHandle.fieldHandle}' | rv }}`

Function `{% set this = rv('something goes here {globalHandle.fieldHandle}') %}`

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Every ~127 days

Total

2

Last Release

2115d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1436378?v=4)[Nathan Reed](/maintainers/zizther)[@zizther](https://github.com/zizther)

---

Top Contributors

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

---

Tags

cmsCraftcraftcmscraft-pluginreplace variable

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/zizther-replace-variable/health.svg)

```
[![Health](https://phpackages.com/badges/zizther-replace-variable/health.svg)](https://phpackages.com/packages/zizther-replace-variable)
```

###  Alternatives

[verbb/formie

The most user-friendly forms plugin for Craft.

102393.6k69](/packages/verbb-formie)[verbb/comments

Add comments to your site.

13753.9k](/packages/verbb-comments)[verbb/navigation

Create navigation menus for your site.

92705.0k18](/packages/verbb-navigation)[verbb/vizy

A flexible visual editor field for Craft.

4250.4k](/packages/verbb-vizy)[verbb/hyper

A user-friendly links field for Craft.

24147.8k12](/packages/verbb-hyper)[verbb/workflow

Enforce multi-step review processes for creating entries.

138124.1k1](/packages/verbb-workflow)

PHPackages © 2026

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