New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

clicksco/commonmark-laravel

Trivial Laravel wrapper class for League\CommonMark
46
Install
composer require clicksco/commonmark-laravel
Latest Version:1.0.1
PHP:>=5.4.0
Laravel:4
License:MIT
Last Updated:Jan 22, 2015
Links: GitHub  ·  Packagist
Maintainer: jonspark

CommonMark Laravel 4 Wrapper

Software License

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

petebishwhip/laradocs

Maintain beautiful, version-controlled documentation alongside your Laravel code...

77,231 138
spatie/sidecar-shiki

Run Shiki highlighting with Sidecar

10,231 37
typesetterio/typesetter

The main typesetter service for generating PDFs from Markdown for ebooks.

3,757 9
haleks/writedown

Writedown integrate markdown "curly" braces inside the blade template engine, ad...

10,476 5

Version History

Version Released PHP Laravel License
1.0.1 >=5.4.0 ~4.1 MIT
1.0 >=5.4.0 ~4.1 MIT