imtms / laravelmd
Markdown Parser for Laravel
Installs: 45
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Type:package
This package is auto-updated.
Last update: 2024-11-10 20:52:55 UTC
README
Based on PHP-Markdown
Installation
To get the latest version of laravelmd, simply require the project using Composer:
composer require imtms/laravelmd
Instead, you may of course manually update your require block and run composer update
if you so choose:
{ "require": { "imtms/laravelmd": "^1.0" } }
Configuration
Once laravelmd is installed, you need to register the service provider.
Open up config/app.php
and add the following to the providers
key.
imtms\laravelmd\laravelmdProvider::class,
You can register the Markdown facade in the aliases
key of your config/app.php
file if you like.
'laravelmd' => imtms\laravelmd\Facades\laravelmd::class,
Usage
\laravelmd::convert('foo'); // <p>foo</p>