clicksco / commonmark-laravel
Trivial Laravel wrapper class for League\CommonMark
Installs: 46
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
pkg:composer/clicksco/commonmark-laravel
Requires
- php: >=5.4.0
- illuminate/support: ~4.1
- league/commonmark: ~0.6
Requires (Dev)
- phpunit/phpunit: 4.*
This package is not auto-updated.
Last update: 2025-10-07 21:01:50 UTC
README
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.