PHP scripts for BBCode
Switch branches/tags
Clone or download
Pull request Compare This branch is 120 commits ahead of xBBCoder:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
tests
.gitignore
.travis.yml
LICENSE
README.md
composer.json
phpunit.xml.dist

README.md

Parser BBcode

Build Status

Example:

<?php
use Xbbcode\Xbbcode;

$text = 'Это [b]пример[/b] работы парсера [url=https://github.com/Gemorroj/xBBCode]xBBCode[/url].';
$xbbcode = new Xbbcode();
$xbbcode->parse($text);

echo $xbbcode->getHtml();

Requirements:

  • PHP >= 5.6

Installation:

composer require gemorroj/xbbcode

License:

  • GNU GPL v 2