PHP code example of poznet / bbcodeparser

1. Go to this page and download the library: Download poznet/bbcodeparser library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

poznet / bbcodeparser example snippets

 php
    $bbcode = new poznet\BBCode\BBCodeParser;

    echo $bbcode->parseCaseSensitive('[b]Bold[/b] [I]Italic![/I]');
         // <strong>Bold</strong> [I]Italic![/I]
 php
'poznet\BBCode\BBCodeParserServiceProvider'
 php
'BBCode' => 'poznet\BBCode\Facades\BBCodeParser'