Skip to content

Clicksco/CommonMarkLaravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Trivial package to wrap league/commonmark for Laravel 4

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages