Skip to content

Repository files navigation

BBCode-Parser

Latest VersionSoftware LicenseBuild StatusCoverage Status

A BBCode-to-HTML parser for youthweb.net

Install

Via Composer

$ composer require youthweb/bbcode-parser

Usage

useYouthweb\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>"

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

$ vendor/bin/phpunit

Contributing

Please feel free to submit bugs or to fork and sending Pull Requests.

License

GPL3. Please see License File for more information.

About

📰 A BBCode-to-HTML parser for youthweb.net

Resources

Stars

3 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages