PHPackages                             miovisman/parserus - 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. miovisman/parserus

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

miovisman/parserus
==================

BBCode parser.

1.5.0(1y ago)2511MITPHPPHP &gt;=7.3.0

Since Nov 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/MioVisman/Parserus)[ Packagist](https://packagist.org/packages/miovisman/parserus)[ Docs](https://github.com/MioVisman/Parserus)[ RSS](/packages/miovisman-parserus/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)DependenciesVersions (14)Used By (1)

Parserus
========

[](#parserus)

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

BBCode parser.

Note
----

[](#note)

Version 1.x is incompatible with version 0.9.x.

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

[](#requirements)

- PHP 7.3.0+

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

[](#installation)

Include `Parserus.php` or install [the composer package](https://packagist.org/packages/MioVisman/Parserus).

Example
-------

[](#example)

```
$parser = new Parserus();

echo $parser->addBBCode([
    'tag' => 'b',
    'handler' => function($body) {
        return '' . $body . '';
    }
])->addBBcode([
    'tag' => 'i',
    'handler' => function($body) {
        return '' . $body . '';
    },
])->parse("[i]Hello\n[b]World[/b]![/i]")
->getHTML();

#output: HelloWorld!
```

More examples in [the wiki](https://github.com/MioVisman/Parserus/wiki).

License
-------

[](#license)

This project is under MIT license. Please see the [license file](LICENSE) for details.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

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

Recently: every ~131 days

Total

13

Last Release

542d ago

Major Versions

0.9.x-dev → 1.0.02021-01-06

PHP version history (2 changes)0.9.0-betaPHP &gt;=5.4.0

1.0.0PHP &gt;=7.3.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/15eedc8758791b5c39f771bdba9ae16e470fc4d8b9981fd2a23e49af4ee0b110?d=identicon)[MioVisman](/maintainers/MioVisman)

---

Top Contributors

[![MioVisman](https://avatars.githubusercontent.com/u/5917956?v=4)](https://github.com/MioVisman "MioVisman (57 commits)")

---

Tags

bbcodebbcode-parserparsershortcodeparserbbcode

### Embed Badge

![Health badge](/badges/miovisman-parserus/health.svg)

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

###  Alternatives

[nikic/php-parser

A PHP parser written in PHP

17.4k902.6M1.8k](/packages/nikic-php-parser)[doctrine/lexer

PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.

11.2k910.8M118](/packages/doctrine-lexer)[erusev/parsedown

Parser for Markdown.

15.0k151.8M732](/packages/erusev-parsedown)[league/commonmark

Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)

3.0k404.0M702](/packages/league-commonmark)[masterminds/html5

An HTML5 parser and serializer.

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

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)

PHPackages © 2026

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