chronon/markdown
Composer 安装命令:
composer require chronon/markdown
包简介
A CakePHP 2.x Markdown helper packaged as a plugin.
关键字:
README 文档
README
DEPRECATION NOTICE: This CakePHP 2.x plugin is deprecated and will most likely not be updated.
A PHP Markdown helper packaged as a plugin.
This plugin works with Composer and is available on Packagist.
Installation:
If you are using composer, require chronon/markdown:
{
"require": {
"chronon/markdown": "*"
},
"config": {
"vendor-dir": "Vendor"
}
}
This will install the plugin into Plugin/Markdown, and install Markdown lib (from Packagist) into
your Vendor directory.
In Config/bootstrap.php, import composer's autoload file:
<?php App::import('Vendor', array('file' => 'autoload'));
Using git:
If you are not using composer, clone the repository:
git clone git@github.com:chronon/CakePHP-Markdown-Plugin.git APP/Plugin/Markdown
Usage:
In your controller:
<?php public $helpers = array('Markdown.Markdown');
In your view:
<?php echo $this->Markdown->md(markdown_to_be_converted_to_html);
统计信息
- 总下载量: 370
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-04-20