chronon / markdown
A CakePHP 2.x Markdown helper packaged as a plugin.
Installs: 368
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- php: >=5.3.0
- composer/installers: *
- michelf/php-markdown: 1.3.*
This package is not auto-updated.
Last update: 2024-11-09 14:32:09 UTC
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);