PHPackages                             mos/ctextfilter - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. mos/ctextfilter

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

mos/ctextfilter
===============

PHP classes for text filtering and formatting to HTML

v1.4.0(2y ago)02.5k[2 issues](https://github.com/mosbth/ctextfilter/issues)4MITPHPPHP &gt;=5.4

Since Apr 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mosbth/ctextfilter)[ Packagist](https://packagist.org/packages/mos/ctextfilter)[ Docs](http://dbwebb.se)[ RSS](/packages/mos-ctextfilter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (30)Used By (4)

Mos\\TextFilter
===============

[](#mostextfilter)

[![Build Status](https://camo.githubusercontent.com/03044a92fa3db45e7b6b52232296c15869965a9b5f9498d329140e1beeedf91f/68747470733a2f2f7472617669732d63692e6f72672f6d6f736274682f637465787466696c7465722e737667)](https://travis-ci.org/mosbth/ctextfilter)[![Build Status](https://camo.githubusercontent.com/7306d813576be8c7f61ebf9592bb396d7e650e1a5a513d402169385dafc480ae/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d6f736274682f637465787466696c7465722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mosbth/ctextfilter/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/3040c1d87e737d45feeff0820f1d77c915aa7ee15fa4945c8b88031d03f6f376/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d6f736274682f637465787466696c7465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mosbth/ctextfilter/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/602c33e183d017fc417697389a76e3843ae8729062a120e89a0e436b83eb677b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d6f736274682f637465787466696c7465722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mosbth/ctextfilter/?branch=master)[![SensioLabsInsight](https://camo.githubusercontent.com/d88b3a07b884a70ad288c14e85cc903b9a24437d2de088cc721525e882aa2444/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f64366461373530322d306438312d346264312d393733652d6239313465643165396439642f6d696e692e706e67)](https://insight.sensiolabs.com/projects/d6da7502-0d81-4bd1-973e-b914ed1e9d9d)

PHP class to parse text through a set of user-defined filters to format as HTML.

License
-------

[](#license)

This software is free software and carries a MIT license.

Install
-------

[](#install)

[The package is available on Packagist](https://packagist.org/packages/mos/ctextfilter).

Usage
-----

[](#usage)

See the sample-programs in `webroot`, check the test cases in `test` and review the source code of the class itself.

```
 .
..:    Copyright (c) 2013-2016 Mikael Roos, mos@dbwebb.se

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity69

Established project with proven stability

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

Recently: every ~567 days

Total

29

Last Release

880d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4cac244120f54c02a4fb3186b91323f3f0805dd9daefd0babeb4a82a19232faf?d=identicon)[mikael\_roos](/maintainers/mikael_roos)

---

Top Contributors

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

---

Tags

markdownYAML front mattereducationbbcodeshortcodeHtml Purifierjson front matter

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mos-ctextfilter/health.svg)

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

###  Alternatives

[thunderer/shortcode

Advanced shortcode (BBCode) parser and engine for PHP

3892.6M44](/packages/thunderer-shortcode)[daux/daux.io

Documentation generator that uses a simple folder structure and Markdown files to create custom documentation on the fly

825191.0k1](/packages/daux-dauxio)[kartik-v/yii2-markdown

Advanced Markdown editing and conversion utilities for Yii Framework 2.0

88265.8k6](/packages/kartik-v-yii2-markdown)[vtalbot/markdown

Markdown compiler for Laravel 5

100204.2k3](/packages/vtalbot-markdown)[3f/converter

A set of classes to translate a text from HTML to BBcode and from BBCode to Markdown.

29148.7k](/packages/3f-converter)[maglnet/magl-markdown

Provides a ZF2 View Helper to render markdown syntax. It uses third-party libraries for the rendering and you can switch between different renderers.

22178.2k4](/packages/maglnet-magl-markdown)

PHPackages © 2026

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