PHPackages                             tomiii/decoda-extended - 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. tomiii/decoda-extended

ActiveLibrary[Search &amp; Filtering](/categories/search)

tomiii/decoda-extended
======================

A lightweight lexical string parser for BBCode styled markup.

6.7.1(10y ago)0337MITPHPPHP &gt;=5.3.0

Since Jul 8Pushed 10y ago1 watchersCompare

[ Source](https://github.com/T0miii/decoda-extended)[ Packagist](https://packagist.org/packages/tomiii/decoda-extended)[ Docs](http://milesj.me/code/php/decoda)[ RSS](/packages/tomiii-decoda-extended/feed)WikiDiscussions master Synced 2mo ago

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

Disclaimer
----------

[](#disclaimer)

- This Fork is heavily customised for own purposes
- If you encounter any problems using it, please refer to the original code by: milesj
- added email attribute: cc, bcc, subject, body
- added p tag and attributes: id, class
- added attribute class, and target to the url tag

Decoda v6.7.1 [![Build Status](https://camo.githubusercontent.com/b03d1b3a50e58041ddd365e11ba32cb9a6e6c9ddf2b12d32cc6499c766378a86/68747470733a2f2f7472617669732d63692e6f72672f6d696c65736a2f6465636f64612e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/milesj/decoda)
====================================================================================================================================================================================================================================================================================

[](#decoda-v671-)

A lightweight lexical string parser for BBCode styled markup.

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

[](#requirements)

- PHP 5.3.0
    - Multibyte
- Composer

Compatibility
-------------

[](#compatibility)

- v3.x - PHP 5.2
- v4.x - PHP 5.3
- v5.x - PHP 5.3, Composer

Contributors
------------

[](#contributors)

- "Marten-Plain" emoticons by Mårten Lundin - [http://adiumxtras.com/index.php?a=xtras&amp;xtra\_id=6920](http://adiumxtras.com/index.php?a=xtras&xtra_id=6920)
- "HTML\_BBCodeParser" by Seth Price - [http://pear.php.net/package/HTML\_BBCodeParser/](http://pear.php.net/package/HTML_BBCodeParser/)

Features
--------

[](#features)

- Parses custom code to valid (X)HTML markup
- Setting to make links and emails auto-clickable
- Setting to use shorthand text for links and emails
- Filters to parse markup and custom code
- Hooks to execute callbacks during the parsing cycle
- Loaders to load resources and files for configuration
- Engines to render complex markup using a template system
- Can censor offensive words
- Can convert smiley faces into images
- Basic support for localized messages
- Supports a wide range of tags
- Parent child node hierarchy
- Fixes incorrectly nested tags by removing the broken/unclosed tags
- Self closing tags
- Logs errors for validation
- Tag and attribute aliasing

Filters
-------

[](#filters)

The following filters and supported tags are available.

- Default - b, i, u, s, sup, sub, br, hr, abbr, time
- Block - align, float, hide, alert, note, div, spoiler, left, right, center, justify
- Code - code, source, var
- Email - email, mail
- Image - image, img
- List - list, olist, ol, ul, li, \*
- Quote - quote
- Text - font, size, color, h1-h6
- Url - url, link
- Video - video, youtube, vimeo, veoh, liveleak, dailymotion, myspace, wegame, collegehumor
- Table - table, thead, tbody, tfoot, tr, td, th, row, col

Hooks
-----

[](#hooks)

The following hooks are available.

- Censor - Censors all words found within config/censored
- Clickable - Converts all non-tag wrapped URLs and emails into clickable links
- Emoticon - Converts all smilies found within config/emoticons into emoticon images

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 84.7% 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 ~22 days

Recently: every ~66 days

Total

49

Last Release

3984d ago

Major Versions

3.x-dev → 4.0.0-beta2012-09-21

4.x-dev → 5.0.0-beta2012-12-30

5.1.3 → 6.0.0-rc12013-03-30

PHP version history (3 changes)3.4PHP &gt;=5.2

4.0.0-betaPHP &gt;=5.3

5.1.1PHP &gt;=5.3.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/065e88f812237c7a9f1feb83b3436799eacae950211b2d1cabc4d5eeddbef4e0?d=identicon)[Tomiii](/maintainers/Tomiii)

---

Top Contributors

[![milesj](https://avatars.githubusercontent.com/u/143744?v=4)](https://github.com/milesj "milesj (382 commits)")[![alquerci](https://avatars.githubusercontent.com/u/2987860?v=4)](https://github.com/alquerci "alquerci (32 commits)")[![T0miii](https://avatars.githubusercontent.com/u/10532141?v=4)](https://github.com/T0miii "T0miii (12 commits)")[![hilobok](https://avatars.githubusercontent.com/u/194895?v=4)](https://github.com/hilobok "hilobok (3 commits)")[![jonnsl](https://avatars.githubusercontent.com/u/217452?v=4)](https://github.com/jonnsl "jonnsl (3 commits)")[![BlueM](https://avatars.githubusercontent.com/u/1493457?v=4)](https://github.com/BlueM "BlueM (3 commits)")[![helios-ag](https://avatars.githubusercontent.com/u/334907?v=4)](https://github.com/helios-ag "helios-ag (3 commits)")[![Loveangel1337](https://avatars.githubusercontent.com/u/3483081?v=4)](https://github.com/Loveangel1337 "Loveangel1337 (3 commits)")[![uzegonemad](https://avatars.githubusercontent.com/u/430255?v=4)](https://github.com/uzegonemad "uzegonemad (2 commits)")[![lgiraudel](https://avatars.githubusercontent.com/u/487214?v=4)](https://github.com/lgiraudel "lgiraudel (1 commits)")[![yuks](https://avatars.githubusercontent.com/u/2283558?v=4)](https://github.com/yuks "yuks (1 commits)")[![mamiefurax](https://avatars.githubusercontent.com/u/3955802?v=4)](https://github.com/mamiefurax "mamiefurax (1 commits)")[![fkrauthan](https://avatars.githubusercontent.com/u/1679841?v=4)](https://github.com/fkrauthan "fkrauthan (1 commits)")[![ShahiemS](https://avatars.githubusercontent.com/u/188719889?v=4)](https://github.com/ShahiemS "ShahiemS (1 commits)")[![Amegatron](https://avatars.githubusercontent.com/u/6664497?v=4)](https://github.com/Amegatron "Amegatron (1 commits)")[![hisorange](https://avatars.githubusercontent.com/u/3441017?v=4)](https://github.com/hisorange "hisorange (1 commits)")[![jcrombez](https://avatars.githubusercontent.com/u/777666?v=4)](https://github.com/jcrombez "jcrombez (1 commits)")

---

Tags

parserlexerfilterHOOKmarkupbbcodedecoda

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tomiii-decoda-extended/health.svg)

```
[![Health](https://phpackages.com/badges/tomiii-decoda-extended/health.svg)](https://phpackages.com/packages/tomiii-decoda-extended)
```

###  Alternatives

[mjohnson/decoda

A lightweight lexical string parser for BBCode styled markup.

1971.3M12](/packages/mjohnson-decoda)[clue/stream-filter

A simple and modern approach to stream filtering in PHP

1.7k261.7M7](/packages/clue-stream-filter)[s9e/text-formatter

Multi-purpose text formatting and markup library. Plugins offer support for BBCodes, Markdown, emoticons, HTML, embedding third-party media (YouTube, etc...), enhanced typography and more.

2413.1M29](/packages/s9e-text-formatter)[laminas/laminas-filter

Programmatically filter and normalize data and files

9428.0M150](/packages/laminas-laminas-filter)[millat/laravel-hooks

The WordPress filter, action system in Laravel

5715.1k](/packages/millat-laravel-hooks)[stolz/laravel-html-tidy

HTML Tidy middleware for Laravel

278.7k](/packages/stolz-laravel-html-tidy)

PHPackages © 2026

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