2017 © Pedro Peláez
 

cakephp-plugin cakephp-markdown

Cakephp Markdown plugin for CakePHP 3.

image

tanuck/cakephp-markdown

Cakephp Markdown plugin for CakePHP 3.

  • Tuesday, March 3, 2015
  • by tanuck
  • Repository
  • 6 Watchers
  • 6 Stars
  • 2,521 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 4 Open issues
  • 2 Versions
  • 4 % Grown

The README.md

CakePHP Markdown

Build Status License Total Downloads, (*1)

CakePHP 3 plugin to parse markdown syntax in your view templates., (*2)

Installation

Include the following in your composer.json file:, (*3)

    "require": {
        "tanuck/cakephp-markdown": "dev-master"
    }

and then run:, (*4)

composer update, (*5)

Configuration & Usage

To your config/bootstrap.php file add Plugin::load('Tanuck/Markdown');, (*6)

Then, load the helper where needed. For example, in your controller:, (*7)

    class FooController extends AppController
    {
        public $helpers = ['Tanuck/Markdown.Markdown'];
    }

then in your templates, you can output markdown syntax like so:, (*8)

    echo $this->Markdown->transform($myMarkdownSyntax);

Advanced Configuration

Markdown is rendered using the cebe/markdown library which offers 3 different markdown parser classes., (*9)

By default, the plugin will use Markdown, the first of the 3 above. However you can specify which of the 3 you use wish to use when loading the helper. Like so:, (*10)

    class FooController extends AppController
    {
        public $helpers = [
            'Tanuck/Markdown.Markdown' => [
                'parser' => 'GithubMarkdown'
            ]
        ];
    }

License

cakephp-markdown is offered under an MIT license., (*11)

The Versions

03/03 2015

dev-master

9999999-dev

Cakephp Markdown plugin for CakePHP 3.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar tanuck

20/02 2015

v0.1.0

0.1.0.0

Cakephp Markdown plugin for CakePHP 3.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar tanuck