PHP code example of pherum / laravel-bbcode

1. Go to this page and download the library: Download pherum/laravel-bbcode 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/ */

    

pherum / laravel-bbcode example snippets

 php
    $bbcode = new PheRum\BBCode\BBCodeParser;

    echo $bbcode->parseCaseSensitive('[b]Bold[/b] [I]Italic![/I]');
         // <strong>Bold</strong> [I]Italic![/I]
 php
PheRum\BBCode\BBCodeServiceProvider::class,
 php
'BBCode' => PheRum\BBCode\Facades\BBCode::class,