matt-bartlett/markdown
最新稳定版本:0.1.3
Composer 安装命令:
composer require matt-bartlett/markdown
包简介
Markdown compiler for Laravel 5
关键字:
README 文档
README
A simple wrapper around Michelfs PHP Markdown parser. This was developed for my own use of constructing valid Markdown from a given string. I will look to extend this package at some point.
Installing
Begin by installing this package through Composer. Edit your project's composer.json file to require matt-bartlett/markdown:
"require": {
"matt-bartlett/markdown": "0.1.2"
}
Next, update Composer from the Terminal:
composer update
Add this service provider to your config. Open config/app.php and insert the following line into your providers array:
MattBartlett\Markdown\MarkdownServiceProvider::class
Make use of the facade and add this to your aliases array:
'Markdown' => MattBartlett\Markdown\Facades\Markdown::class
All done.
Usage
You can either inject the Markdown class into a method or call it directly from a view. For example:
Markdown::string('````$var = "Hello World";```')
统计信息
- 总下载量: 376
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-07-05