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

ActiveLibrary

devristo/bbcode
===============

A simple yet flexible BBCode parser for PHP 5.4 and higher.

v1.0.1(7y ago)4684↓100%BSD-2-ClausePHPPHP &gt;=5.4.0

Since Jan 10Pushed 7y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (4)Used By (0)

bbcode
======

[](#bbcode)

A simple yet flexible BBCode parser for PHP 5.4 and higher.

Features
--------

[](#features)

- Transforms BBCode documents to a `DOMDocument`. Can be altered using its API or queried using XPath.
- Annotates smileys and urls in text nodes
- Flexible recursive rendering mechanism.

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

[](#installation)

The easiest way to get started is by using composer. Since the API is not finalised you need to refer to *devristo/bbcode* as follows:

```
{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/Devristo/bbcode.git"
    }
  ], "require": {
    "devristo/bbcode": "dev-master"
  }
}
```

Minimal example
---------------

[](#minimal-example)

For basic BBCode *devristo/bbcode* offers out of the box support. This is the case for **\[b\]**, **\[i\]**, **\[img\]**, **\[s\]**, **\[u\]** and **\[url\]** tags.

```
