Clicksco / CommonMarkLaravel by jonspark

Trivial Laravel wrapper class for League\CommonMark
45
0
5
Package Data
Maintainer Username: jonspark
Maintainer Contact: jon.park@thap.co.uk (Jon Park)
Package Create Date: 2015-01-22
Package Last Update: 2015-01-22
Language: PHP
License: MIT
Last Refreshed: 2024-11-23 03:16:26
Package Statistics
Total Downloads: 45
Monthly Downloads: 1
Daily Downloads: 0
Total Stars: 0
Total Watchers: 5
Total Forks: 0
Total Open Issues: 0

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.