A BBCode-to-HTML parser for youthweb.net
Via Composer
$ composer require youthweb/bbcode-parseruseYouthweb\BBCodeParser\Manager;
$text = '[h1]Hello World![/h1]This is a [i]simple[/i] test to demonstrate the [b]BBCodeParser[/b].';
$parser = newManager();
$config = ['parse_headlines' => true];
echo$parser->parse($text, $config);
// "<h1>Hello World!</h1>// <p>This is a <i>simple</i> test to demonstrate the <b>BBCodeParser</b>.</p>"Please see CHANGELOG for more information what has changed recently.
$ vendor/bin/phpunitPlease feel free to submit bugs or to fork and sending Pull Requests.
GPL3. Please see License File for more information.