youthweb/bbcode-parser

BBCode-to-HTML parser

Maintainers

👁 Art4

Package info

github.com/youthweb/bbcode-parser

pkg:composer/youthweb/bbcode-parser

Statistics

Installs: 10 148

Dependents: 0

Suggesters: 0

Stars: 3

Open Issues: 1

1.7.1 2021-11-24 10:55 UTC

Suggests

None

Provides

None

Conflicts

None

Replaces

None

GPL-3.0-or-later b1321c51ab6b50cdff2adf24a90e8779971129b5

parserhtmlbbcodeyouthweb

This package is auto-updated.

Last update: 2026-06-26 08:24:24 UTC


README

👁 Latest Version
👁 Software License
👁 Build Status
👁 Coverage Status

A BBCode-to-HTML parser for youthweb.net

Install

Via Composer

$ composer require youthweb/bbcode-parser

Usage

use Youthweb\BBCodeParser\Manager;

$text = '[h1]Hello World![/h1]

This is a [i]simple[/i] test to demonstrate the [b]BBCodeParser[/b].';

$parser = new Manager();
$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.