PHPackages                             ralkage/flarum-ext-word-censor - 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. [Search &amp; Filtering](/categories/search)
4. /
5. ralkage/flarum-ext-word-censor

ActiveFlarum-extension[Search &amp; Filtering](/categories/search)

ralkage/flarum-ext-word-censor
==============================

Configurable word censoring with per-user toggle. On by default for guests and registered users.

1.0.0(3mo ago)034↓44.4%MITPHP

Since Mar 21Pushed 3mo agoCompare

[ Source](https://github.com/Ralkage/flarum-ext-word-censor)[ Packagist](https://packagist.org/packages/ralkage/flarum-ext-word-censor)[ Docs](https://ralkage.com)[ RSS](/packages/ralkage-flarum-ext-word-censor/feed)WikiDiscussions 1.x Synced 3w ago

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

Word Censor
===========

[](#word-censor)

[![License: MIT](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)

Configurable word censoring extension for [Flarum](https://flarum.org) with a per-user toggle. Censoring is on by default for all users, including guests.

Features
--------

[](#features)

- **Admin-defined word list** — Add words or phrases to censor, one per line
- **Configurable replacement character** — Choose what character replaces censored letters (default: `*`)
- **Always on for guests** — Unauthenticated visitors always see censored content
- **Per-user toggle** — Registered users can disable censoring from their account settings
- **Display-time only** — Original post content is preserved in the database; censoring is applied at render time
- **HTML-safe** — Only censors visible text, leaving HTML tags and attributes intact

How It Works
------------

[](#how-it-works)

When a post is serialized for the API response, the extension checks:

1. **Guest?** → Always censor
2. **Registered user with censoring enabled (default)?** → Censor
3. **Registered user who disabled censoring?** → Show original content

Censored words are matched using word boundaries to avoid false positives (e.g., "ass" won't match "assistant"). Matching is case-insensitive.

### Example

[](#example)

**Word list:**

```
damn
crap

```

**Original post:** `This is a damn good example`**Censored view:** `This is a **** good example`

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

[](#installation)

```
composer require ralkage/flarum-ext-word-censor
php flarum cache:clear
```

Enable the extension in the admin panel under **Extensions &gt; Word Censor**.

Configuration
-------------

[](#configuration)

### Admin Settings

[](#admin-settings)

Navigate to the Word Censor extension settings page:

SettingDescription**Censored Words**One word or phrase per line. These will be replaced when displayed.**Replacement Character**Character used to replace each letter of a censored word. Default: `*`### User Settings

[](#user-settings)

Registered users can toggle censoring on/off from **Settings** in their account page. The toggle is labeled **"Enable Word Censoring"**.

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

[](#requirements)

- Flarum `^1.8`
- PHP 8.0+

Links
-----

[](#links)

- [Ralkage](https://ralkage.com)

License
-------

[](#license)

MIT License. See [LICENSE](LICENSE) for details.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance82

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

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

4

Last Release

97d ago

Major Versions

1.x-dev → 2.x-dev2026-03-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/4415106be37759e15d2f1304df343a37e478dad0f832b6f35860631ffc9b6afb?d=identicon)[Ralkage](/maintainers/Ralkage)

---

Top Contributors

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

---

Tags

filterprofanitymoderationcensor

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ralkage-flarum-ext-word-censor/health.svg)

```
[![Health](https://phpackages.com/badges/ralkage-flarum-ext-word-censor/health.svg)](https://phpackages.com/packages/ralkage-flarum-ext-word-censor)
```

###  Alternatives

[clue/stream-filter

A simple and modern approach to stream filtering in PHP

1.7k271.5M8](/packages/clue-stream-filter)[laminas/laminas-filter

Programmatically filter and normalize data and files

9529.5M173](/packages/laminas-laminas-filter)[flarum-lang/russian

Russian language pack for Flarum.

12127.5k](/packages/flarum-lang-russian)[diego-ninja/sentinel

A content moderation and sentiment analysis library for Laravel 10+

394.7k](/packages/diego-ninja-sentinel)

PHPackages © 2026

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