PHPackages                             cyphix333/sbb-code-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. cyphix333/sbb-code-parser

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

cyphix333/sbb-code-parser
=========================

SBBCodeParser is a simple BBCode parser

08PHP

Since Apr 3Pushed 11y ago1 watchersCompare

[ Source](https://github.com/cyphix333/SBBCodeParser)[ Packagist](https://packagist.org/packages/cyphix333/sbb-code-parser)[ RSS](/packages/cyphix333-sbb-code-parser/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

SBBCodeParser v1.11
===================

[](#sbbcodeparser-v111)

Copyright (C) 2011, Sam Clarke ()

SBBCodeParser is a simple BBCode parser.

### Example usage:

[](#example-usage)

```
$parser = new \SBBCodeParser\Node_Container_Document();

$parser->add_emoticons(array(
	':)' => 'http://localhost/Classes/SCEditor-punbb/punbb-1.3.5/img/smilies/smile.png',
	'=)' => 'http://localhost/Classes/SCEditor-punbb/punbb-1.3.5/img/smilies/smile.png'
));

echo $parser->parse('This should be [b]bold[/b] and this should be [i]italic[/i]')
	->detect_links()
	->detect_emails()
	->detect_emoticons()
	->get_html();

```

### Example of adding a custom BBCode:

[](#example-of-adding-a-custom-bbcode)

```
$bbcode = new \SBBCodeParser\BBCode('youtube', function($content, $attribs)
{
	if(substr($content, 0, 23) === 'http://www.youtube.com/')
		$uri = $content;
	else
		$uri = 'http://www.youtube.com/v/' . $content;

	return '';
}, \SBBCodeParser\BBCode::BLOCK_TAG, false, array(), array('text_node'), \SBBCodeParser\BBCode::AUTO_DETECT_EXCLUDE_ALL);

$parser->add_bbcode($bbcode);

```

### Currently included default BBCodes:

[](#currently-included-default-bbcodes)

```
b
i
strong
em
u
s
blink
sub
sup
ins
del
right
left
center
justify
note
hidden
abbr
acronym
icq
skype
bing
google
wikipedia
youtube
vimeo
flash
paypal
pastebin
gist
twitter
tweets
googlemaps
pdf
scribd
spoiler
tt
pre
code
php
quote
font
size
color
list
ul
ol
li
*
table
th
h
tr
row
r
td
col
c
notag
nobbc
noparse
h1
h2
h3
h4
h5
h6
big
small
br
sp
hr
anchor
goto
jumpto
img
email
url

```

License
=======

[](#license)

SBBCodeParser is licensed under the LGPL license:

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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://www.gravatar.com/avatar/38c71aae113f83338e2a64003d81d624a2d8bdfbfe2d477e9a8d47c227182f01?d=identicon)[cyphix333](/maintainers/cyphix333)

---

Top Contributors

[![jmocha](https://avatars.githubusercontent.com/u/8739963?v=4)](https://github.com/jmocha "jmocha (5 commits)")[![christianrank](https://avatars.githubusercontent.com/u/3001431?v=4)](https://github.com/christianrank "christianrank (4 commits)")[![samclarke](https://avatars.githubusercontent.com/u/490870?v=4)](https://github.com/samclarke "samclarke (1 commits)")

### Embed Badge

![Health badge](/badges/cyphix333-sbb-code-parser/health.svg)

```
[![Health](https://phpackages.com/badges/cyphix333-sbb-code-parser/health.svg)](https://phpackages.com/packages/cyphix333-sbb-code-parser)
```

###  Alternatives

[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[bizley/quill

Quill editor implementation for Yii 2.

64133.3k5](/packages/bizley-quill)[ebanx/benjamin

Business rule provider lib for plugin implementations

18155.2k1](/packages/ebanx-benjamin)[shel/neos-colorpicker

A plugin for Neos CMS which provides a colorpicker editor

1494.4k6](/packages/shel-neos-colorpicker)

PHPackages © 2026

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