PHPackages                             zigit-dev/textformatter\_tokens - 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. zigit-dev/textformatter\_tokens

ActiveProcesswire-module[Utility &amp; Helpers](/categories/utility)

zigit-dev/textformatter\_tokens
===============================

Allows other modules to register tokens and replace them with actual values.

1.0.1(1y ago)110MITPHPPHP &gt;=5.5

Since Jul 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/zigit-dev/TextformatterTokens)[ Packagist](https://packagist.org/packages/zigit-dev/textformatter_tokens)[ Docs](https://github.com/zigit-dev/TextformatterTokens)[ RSS](/packages/zigit-dev-textformatter-tokens/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (4)Used By (0)

TextformatterTokens Module
==========================

[](#textformattertokens-module)

Overview
--------

[](#overview)

The TextformatterTokens module allows other modules to register tokens and replace them with actual values.

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

[](#installation)

1. Enable the `TextformatterTokens` module.
2. Enable the `SiteTokens` module.
3. Enable the `TextformatterTokens` text formatter for a field.

Usage
-----

[](#usage)

Use tokens provided by the `SiteTokens` module inside a field that has the `TextformatterTokens` text formatter enabled. Save and display your page. The tokens should be replaced with the actual content.

Example Tokens
--------------

[](#example-tokens)

- `[site:name]`
- `[page id=123]` where `id` is the ID of the page you want to embed its body field.

Debugging
---------

[](#debugging)

You can view logs under your ProcessWire admin dashboard at Setup &gt; Logs &gt; `tokens`.

Writing own tokens
------------------

[](#writing-own-tokens)

To create custom tokens, refer to the `SiteTokens.module` file for an example implementation.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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 ~0 days

Total

2

Last Release

668d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/362a2c76a932841a64916173d113d63d588a577567c2c97b2f883c5b18446c8e?d=identicon)[zigit-dev](/maintainers/zigit-dev)

---

Top Contributors

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

---

Tags

tokensprocesswiretextformatter\_tokens

### Embed Badge

![Health badge](/badges/zigit-dev-textformatter-tokens/health.svg)

```
[![Health](https://phpackages.com/badges/zigit-dev-textformatter-tokens/health.svg)](https://phpackages.com/packages/zigit-dev-textformatter-tokens)
```

###  Alternatives

[phpcsstandards/phpcsutils

A suite of utility functions for use with PHP\_CodeSniffer

6233.4M58](/packages/phpcsstandards-phpcsutils)[elabx/fieldtype-recurring-dates

Field to setup recurring dates using RRule

104.2k](/packages/elabx-fieldtype-recurring-dates)

PHPackages © 2026

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