PHPackages                             uniibu/nbbc - 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. uniibu/nbbc

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

uniibu/nbbc
===========

An updated composer-compatible fork of the NBBC BBCode parsing library.

014[1 issues](https://github.com/uniibu/nbbc/issues)PHP

Since Apr 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/uniibu/nbbc)[ Packagist](https://packagist.org/packages/uniibu/nbbc)[ RSS](/packages/uniibu-nbbc/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (0)

The New BBCode Parser (NBBC)
============================

[](#the-new-bbcode-parser-nbbc)

[![Build Status](https://camo.githubusercontent.com/0c7ea2f3a65fdf13e2923410ceb803b08836daae2ffebc425a05e9e0e81c7c99/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f76616e696c6c612f6e6262632e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/uniibu/nbbc)[![Packagist Version](https://camo.githubusercontent.com/f93db1f7d04d0734a448705b4e590b8bb270ce53f48c87a88f00b66d43df4127/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f76616e696c6c612f6e6262632e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/uniibu/nbbc)

NBBC is a high-speed, extensible, easy-to-use validating BBCode parser. It was originally developed by Sean Werkema and most of the core code is still his. The core NBBC was last [updated officially](http://nbbc.sourceforge.net/) in 2010. This is forked from .

Changes between this version of NBBC and the vanilla/nbbc project
-----------------------------------------------------------------

[](#changes-between-this-version-of-nbbc-and-the-vanillanbbc-project)

- Changed smileys to sprite to lower image downloads
- Changed smileys to  instead of ![]()
- Smileys folder now includes a smileys.png which you can use as the smiley sprite.
- For smiley css, you can use the smiley.css on the tools folder.

Changes between vanilla/nbbc project and the original project
-------------------------------------------------------------

[](#changes-between-vanillanbbc-project-and-the-original-project)

This project breaks backwards-compatibility with the 1.x version of NBBC which is why it has been given a major version number update even though no significant functionality has been added. Here are a summary of changes.

- All core classes have been moved into the Nbbc namespace to support PSR-4 autoloading and become a full composer library.
- PHP 4 is no longer supported. The minimum version of PHP required is now PHP 5.4.
- All properties on the `BBCode` class have been protected and must now be accessed with getters/setters.
- The URL auto-detection has been rewritten. It supports more general cases, but has removed support for some edge cases such as email addresses with an IP address domain.
- Images and smileys no longer check to see if files exist locally. This removes auto-generated image sizes too.

In addition to backwards-compatibility breaking changes there have been a few other changes that should not break backwards compatibility.

- Tests have been moved into a PHPUnit test suite.
- Calls to the `EmailAddressValidator` have been replaced with PHP's `filter_var()` function.
- Calls to the `Profiler` have been removed from the BBCode class. There are plenty of profiling tools out there now that don't bloat the code.
- The "@" error silencing operator has been removed wherever possible.

A note on copyright
-------------------

[](#a-note-on-copyright)

As noted above, most of the NBBC was written by Sean Werkema and the copyright on that code remains his. There are files that also have a copyright assigned to Vanilla Forums Inc. That additional copyright only applies to the changes made by us. It is not our intention to claim credit for the excellent work done by the original author. We are just following the rules of copyright the best we can. This library will always be licensed under the original open source license (BSDv2).

nbbc-uni
========

[](#nbbc-uni)

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11394857?v=4)[Uni Sayo](/maintainers/uniibu)[@uniibu](https://github.com/uniibu)

---

Top Contributors

[![uniibu](https://avatars.githubusercontent.com/u/11394857?v=4)](https://github.com/uniibu "uniibu (13 commits)")

### Embed Badge

![Health badge](/badges/uniibu-nbbc/health.svg)

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

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19139.2M44](/packages/mck89-peast)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9843.5k](/packages/sauladam-shipment-tracker)[moonshine/layouts-field

Field for repeating groups of fields for MoonShine

107.9k](/packages/moonshine-layouts-field)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

112.9k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

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