kindari / laravel-markdown
Markdown Integration with Laravel's View system
Installs: 1 072
Dependents: 1
Suggesters: 0
Security: 0
Stars: 40
Watchers: 7
Forks: 7
Open Issues: 3
Requires
- php: >=5.3.0
- dflydev/markdown: dev-master
- illuminate/support: 4.*
- illuminate/view: 4.*
This package is not auto-updated.
Last update: 2024-12-16 14:29:18 UTC
README
Laravel Markdown is a wrapper of dflydev/markdown which integrates it into Laravel's View engine. It supports markdown parsing, php preprocessing of markdown files, and blade preprocessing.
Installation
Add kindari/laravel-markdown
to composer.json
.
"kindari/laravel-markdown": "1.0.*"
Run composer update
to pull down the latest version of Laravel Markdown. Now open up app/config/app.php
and add the service provider to your providers
array, after the ViewServiceProvider.
'providers' => array(
...
'Illuminate\View\ViewServiceProvider',
'Kindari\LaravelMarkdown\MarkdownServiceProvider',
...
)
Usage
Create a view file named foobar.md, foobar.md.php or foobar.md.blade.php then use it like normal:
return View::make('foobar');