clicksco/commonmark-laravel
CommonMark Laravel 4 Wrapper
Trivial Laravel 4 wrapper class for The PHP League's CommonMark package.
Install
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',
...
];
Usage
echo CommonMark::convertToHtml('# Hello, World!');
Testing
$ phpunit
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.
Related Packages
haleks/writedown
Writedown integrate markdown "curly" braces inside the blade template engine, ad...
10,474
5
vlados/laravel-blade-crawler-detect
Boost Lighthouse and PageSpeed scores by hiding cookie banners, chat widgets and...
5,439
0