PHP code example of limelight / bbcode-markdown-converter

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

    

limelight / bbcode-markdown-converter example snippets


use \Limelight\Converter\Converter;

 . '/data/test_post.bb'); // Pull the test post.

$conv = new Converter($bbCode)
$conv->bbToMarkdown();
echo $conv->getText();

use \Limelight\Converter\Converter;

 . '/data/test_md.md'); // Pull the test post.

$conv = new Converter($mdText)
$conv->markdownToBB();
echo $conv->getText();