clicksco/commonmark-laravel

Trivial Laravel wrapper class for League\CommonMark

1.0.1 2015-01-22 11:02 UTC

This package is not auto-updated.

Last update: 2024-11-19 16:53:42 UTC


README

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.