Trivial Laravel 4 wrapper class for The PHP League's CommonMark package.
Require the package with Composer
$ composer require clicksco/commonmark-laravel
Update app/config/app.php with the ServiceProvider and Facade
'providers' => [
...
'Clicksco\CommonMark\ServiceProvider',
...
];
'aliases' => [
...
'CommonMark' => 'Clicksco\CommonMark\Facade',
...
];
echo CommonMark::convertToHtml('# Hello, World!');
$ phpunit
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.