A CakePHP 2.x Markdown helper packaged as a plugin.

Installs: 259

Dependents: 0

Stars: 3

Watchers: 2

Type: cakephp-plugin

2.1.0 2013-04-22 00:00 UTC


A PHP Markdown helper packaged as a plugin.

This plugin works with Composer and is available on Packagist.


Using Composer/Packagist:

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:

App::import('Vendor', array('file' => 'autoload'));

Using git:

If you are not using composer, clone the repository:

git clone APP/Plugin/Markdown


In your controller:

public $helpers = array('Markdown.Markdown');

In your view:

echo $this->Markdown->md(markdown_to_be_converted_to_html);