PHPackages                             igorakaamigo/php5-tiny-bbcode - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. igorakaamigo/php5-tiny-bbcode

ActiveLibrary[Testing &amp; Quality](/categories/testing)

igorakaamigo/php5-tiny-bbcode
=============================

A tiny BBCode implementation for old PHP5.

1.1.0(8y ago)016[1 issues](https://github.com/igorakaamigo/php5-tiny-bbcode/issues)MITPHPPHP &gt;=5.4

Since Dec 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/igorakaamigo/php5-tiny-bbcode)[ Packagist](https://packagist.org/packages/igorakaamigo/php5-tiny-bbcode)[ RSS](/packages/igorakaamigo-php5-tiny-bbcode/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Tiny BBCode implementation for PHP 5.4+ and HHVM
================================================

[](#tiny-bbcode-implementation-for-php-54-and-hhvm)

This library includes a lightweight implementation of a BBCode subset to HTML translator.

[![License](https://camo.githubusercontent.com/1c3ff44f37663227a2ea9a849dce88f7a9cb9ae37f0c1339741a9db6539860da/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f69676f72616b61616d69676f2f706870352d74696e792d6262636f64652e737667)](https://github.com/igorakaamigo/php5-tiny-bbcode/blob/master/LICENSE)[![Packagist Version](https://camo.githubusercontent.com/f63e80a545eb8f6d14c354841e5529940bb9d7919cdb37770a0c2062ab801355/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f69676f72616b61616d69676f2f706870352d74696e792d6262636f64652e737667)](https://packagist.org/packages/igorakaamigo/php5-tiny-bbcode)[![Minimal PHP Version](https://camo.githubusercontent.com/d90c1d36297d1070b796c69478553bd46e676b3ea57abc52f1133c016bf6645e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f69676f72616b61616d69676f2f706870352d74696e792d6262636f64652e737667)](http://php.net/downloads.php)

Features
--------

[](#features)

- It's tiny, yep.
- PSR-4 autoloading compliant structure
- Unit-Testing with PHPUnit
- Easy to use to any framework or even a plain php file

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

[](#installation)

The suggested installation method is via [composer](https://getcomposer.org/):

```
php composer.phar require "igorakaamigo/php5-tiny-bbcode"
```

Usage
-----

[](#usage)

```
use \Igorakaamigo\Utils\BBCode;

echo BBCode::convert('[b]A bold string[/b]');
// Outputs: A bold string

echo BBCode::convert('A text');
// Outputs: &lt;span&gt;A text&lt;/span&gt;

echo BBCode::convert('[i]Hi&nbsp;there![/i]');
// Outputs: Hi&amp;nbsp;there!

echo BBCode::convert('[i]Hi&nbsp;there!!![/i]', ['&nbsp;', '']);
// Outputs: Hi&nbsp;there!!!

echo BBCode::convert('Magic links: email me at xxx@yyy.com');
// Outputs: Magic links: email me at xxx@yyy.com

echo BBCode::convert('Magic links: http://www.domain.tld/path/to/resource');
// Outputs: Magic links: http://www.domain.tld/path/to/resource
```

### Supported BBCodes

[](#supported-bbcodes)

- \[b\]Bold string\[/b\]
- \[i\]Italic string\[/i\]
- \[u\]Underline string\[/u\]
- \[s\]Strikethrough string\[/s\]
- \[email\]\[/email\]
- \[url\][http://www.domain.tld\[/url\]](http://www.domain.tld%5B/url%5D)
- \[url="[http://www.domain.tld"\]Another](http://www.domain.tld"]Another) way to render a link\[/url\] (quotes inside url tag are not necessary)
- \[img\][http://www.domain.tld/upload/image.png\[/img\]](http://www.domain.tld/upload/image.png%5B/img%5D)
- \[quote\]A quotation\[/quote\]
- \[quote="Quote author"\]A quotation\[/quote\] (quotes inside quote tag are not necessary)
- \[code\]A program code sample\[/code\]
- \[size="12"\]A text written using a 12px-sized font\[/size\] (quotes inside size tag are not necessary)
- \[size="10pt"\]A text written using a 10pt-sized font\[/size\] (quotes inside size tag are not necessary)
- \[color="#33FF33"\]A green text line\[/color\] (quotes inside color tag are not necessary)
- \[table\], \[tr\], \[td\] – table-related tags
- \[ul\], \[ol\], \[li\], \[\*\], \[list\], \[list=1|a|A|i|I\], \[list="1|a|A|i|I"\] – list-related tags

\[attachment\] tag is not supported yet.

Contributing
------------

[](#contributing)

Just a kata project. Anyway – if one is interested –

Fork --&gt; modify --&gt; pull-request

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

3060d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f3a97ab1af971a35bcce067875f5dea6f27f0aacb2fae3d3d92870f64efecb46?d=identicon)[igorakaamigo](/maintainers/igorakaamigo)

---

Top Contributors

[![igorakaamigo](https://avatars.githubusercontent.com/u/345621?v=4)](https://github.com/igorakaamigo "igorakaamigo (34 commits)")

---

Tags

bbcodebbcode-parserphpphp5phpunittddtdd-katalibraryphp5utilsbbcode

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/igorakaamigo-php5-tiny-bbcode/health.svg)

```
[![Health](https://phpackages.com/badges/igorakaamigo-php5-tiny-bbcode/health.svg)](https://phpackages.com/packages/igorakaamigo-php5-tiny-bbcode)
```

###  Alternatives

[mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

10.7k497.0M23.6k](/packages/mockery-mockery)[letsdrink/ouzo-goodies

Utility classes, test assertions and mocking framework extracted from Ouzo framework.

132617.9k7](/packages/letsdrink-ouzo-goodies)[quizlet/hammock

Hammock is a stand-alone mocking library for Hacklang.

27445.5k](/packages/quizlet-hammock)[oxid-esales/testing-library

OXID eShop testing library

13374.0k10](/packages/oxid-esales-testing-library)

PHPackages © 2026

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