The plugin is available at Github as CakePHP-Markdown-Plugin.
A PHP Markdown helper packaged as a plugin, includes php-markdown.php.
Installation:
If you are using composer, require chronon/markdown
:
1 2 3 4 5 6 7 8 |
|
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:
1 2 |
|
Using git:
If you are not using composer, clone the repository:
1
|
|
Usage:
In your controller:
1 2 |
|
In your view:
1 2 |
|