laravelmd - A Markdown Parser for Laravel
Based on PHP-Markdown, (*1)
Installation
, (*2)
To get the latest version of laravelmd, simply require the project using Composer:, (*3)
shell
composer require imtms/laravelmd
Instead, you may of course manually update your require block and run composer update
if you so choose:, (*4)
{
"require": {
"imtms/laravelmd": "^1.0"
}
}
Configuration
Once laravelmd is installed, you need to register the service provider., (*5)
Open up config/app.php
and add the following to the providers
key., (*6)
php
imtms\laravelmd\laravelmdProvider::class,
, (*7)
You can register the Markdown facade in the aliases
key of your config/app.php
file if you like., (*8)
php
'laravelmd' => imtms\laravelmd\Facades\laravelmd::class,
, (*9)
Usage
php
\laravelmd::convert('foo'); // <p>foo</p>
, (*10)
License
The MIT License (MIT)., (*11)
, (*12)