Skip to content

Gemorroj/xBBCode

 
 

Repository files navigation

Parser BBcode

Continuous Integration

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 >= 8.0.2

Installation:

composer require gemorroj/xbbcode

License:

  • GNU GPL v 2