jared0430 / laravel-parsedown
A simple Laravel 5 wrapper for Parsedown
Installs: 510
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/jared0430/laravel-parsedown
Requires
- erusev/parsedown: ^1.6
- illuminate/support: ^5.2
This package is not auto-updated.
Last update: 2018-03-28 17:49:24 UTC
README
A very simple Laravel 5 wrapper for Parsedown
Requirements
- Laravel 5.1+
Installation
Require this package with composer by using composer require jared0430/laravel-parsedown
After updating composer, add the service provider to the providers
array in config/app.php
Jared0430\Parsedown\ParsedownServiceProvider::class,
and add the facade to the aliases
array in config/app.php
'L5Parsedown' => Jared0430\Parsedown\Facades\Parsedown::class,
Note that the Facade cannot be called Parsedown
as it clashes with the Parsedown library, feel free to call it something other than L5Parsedown
though!
Example usage
{!! L5Parsedown::text('Hello _Parsedown_!') !!} # prints: <p>Hello <em>Parsedown</em>!</p>