Parsedown is a Markdown parser for PHP. It is fast, consistent and easy to use.
Include Parsedown.php
or install the composer package.
$text = 'Hello **Parsedown**!';
$result = Parsedown::instance()->parse($text);
echo $result; # prints: <p>Hello <strong>Parsedown</strong>!</p>