PHPackages                             youthweb/bbcode-parser - 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. youthweb/bbcode-parser

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

youthweb/bbcode-parser
======================

BBCode-to-HTML parser

1.7.1(4y ago)39.1k↑366.7%1[1 PRs](https://github.com/youthweb/bbcode-parser/pulls)GPL-3.0-or-laterPHPPHP ^7.4 || ^8.0

Since May 4Pushed 4y ago5 watchersCompare

[ Source](https://github.com/youthweb/bbcode-parser)[ Packagist](https://packagist.org/packages/youthweb/bbcode-parser)[ Docs](https://github.com/youthweb/bbcode-parser)[ RSS](/packages/youthweb-bbcode-parser/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (16)Used By (0)

BBCode-Parser
=============

[](#bbcode-parser)

[![Latest Version](https://camo.githubusercontent.com/6675d85f0aef9c8677f9e1a46918a8d54109ac2c217da31f17104d0f493b4a39/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f796f7574687765622f6262636f64652d7061727365722e737667)](https://github.com/youthweb/bbcode-parser/releases)[![Software License](https://camo.githubusercontent.com/6f2b03e518f71117284f01a8bf089395fa6c9400661b197d9b9be1919550b944/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d47504c332d627269676874677265656e2e737667)](LICENSE.md)[![Build Status](https://github.com/youthweb/bbcode-parser/actions/workflows/php.yml/badge.svg?branch=master)](https://github.com/youthweb/bbcode-parser/actions)[![Coverage Status](https://camo.githubusercontent.com/1146392406b0bab0d8303282fd3e95377fc13669b3c171bbd0921d5fe5991ca8/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f796f7574687765622f6262636f64652d7061727365722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/youthweb/bbcode-parser?branch=master)

A BBCode-to-HTML parser for youthweb.net

Install
-------

[](#install)

Via Composer

```
$ composer require youthweb/bbcode-parser
```

Usage
-----

[](#usage)

```
use Youthweb\BBCodeParser\Manager;

$text = '[h1]Hello World![/h1]

This is a [i]simple[/i] test to demonstrate the [b]BBCodeParser[/b].';

$parser = new Manager();
$config = ['parse_headlines' => true];

echo $parser->parse($text, $config);

// "Hello World!
//  This is a simple test to demonstrate the BBCodeParser."
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ vendor/bin/phpunit
```

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

[](#contributing)

Please feel free to submit bugs or to fork and sending Pull Requests.

License
-------

[](#license)

GPL3. Please see [License File](LICENSE.md) for more information.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 97.2% 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 ~169 days

Recently: every ~196 days

Total

13

Last Release

1637d ago

Major Versions

1.7.1 → v2.x-dev2021-11-24

PHP version history (5 changes)1.0.0PHP ^5.5|^7.0

1.1.0PHP ^5.6|^7.0

1.2.0PHP ^5.6 || ^7.0

1.5.0PHP ^7.2

1.6.0PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ad0c0fa748422ad817c4124a06618a1e655995502be8d6f03d699f38c0d56b0?d=identicon)[Art4](/maintainers/Art4)

---

Top Contributors

[![Art4](https://avatars.githubusercontent.com/u/2162994?v=4)](https://github.com/Art4 "Art4 (140 commits)")[![lexf](https://avatars.githubusercontent.com/u/3609979?v=4)](https://github.com/lexf "lexf (2 commits)")[![drmmch](https://avatars.githubusercontent.com/u/6781211?v=4)](https://github.com/drmmch "drmmch (1 commits)")[![mukete](https://avatars.githubusercontent.com/u/4340452?v=4)](https://github.com/mukete "mukete (1 commits)")

---

Tags

parserhtmlyouthwebbbcode

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/youthweb-bbcode-parser/health.svg)

```
[![Health](https://phpackages.com/badges/youthweb-bbcode-parser/health.svg)](https://phpackages.com/packages/youthweb-bbcode-parser)
```

###  Alternatives

[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[paquettg/php-html-parser

An HTML DOM parser. It allows you to manipulate HTML. Find tags on an HTML page with selectors just like jQuery.

2.4k7.9M123](/packages/paquettg-php-html-parser)[sunra/php-simple-html-dom-parser

Composer adaptation of: A HTML DOM parser written in PHP5+ let you manipulate HTML in a very easy way! Require PHP 5+. Supports invalid HTML. Find tags on an HTML page with selectors just like jQuery. Extract contents from HTML in a single line.

1.3k9.4M61](/packages/sunra-php-simple-html-dom-parser)[imangazaliev/didom

Simple and fast HTML parser

2.2k2.3M64](/packages/imangazaliev-didom)[thunderer/shortcode

Advanced shortcode (BBCode) parser and engine for PHP

3892.6M44](/packages/thunderer-shortcode)[simplehtmldom/simplehtmldom

A fast, simple and reliable HTML document parser for PHP.

1921.3M14](/packages/simplehtmldom-simplehtmldom)

PHPackages © 2026

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