2017 © Pedro Peláez
 

cakephp-plugin common-mark

Adds CommonMark support to CakePHP 3

image

gourmet/common-mark

Adds CommonMark support to CakePHP 3

  • Wednesday, July 8, 2015
  • by jadb
  • Repository
  • 4 Watchers
  • 7 Stars
  • 13,725 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 4 Versions
  • 14 % Grown

The README.md

CommonMark

Build Status Total Downloads License, (*1)

Adds CommonMark support to CakePHP 3 using the league/commonmark package., (*2)

What's included?

  • CommonMarkAwareTrait
  • CommonMarkHelper
  • CommonMarkBehavior coming soon

Install

Using Composer:, (*3)

composer require gourmet/common-mark:~1.0

You then need to load the plugin. You can use the shell command:, (*4)

bin/cake plugin load Gourmet/CommonMark

or by manually adding statement shown below to boostrap.php:, (*5)

Plugin::load('Gourmet/CommonMark');

Usage

The plugin is basically a bridge disguised as a trait Gourmet\CommonMark\Utility\CommonMarkAwareTrait, so you could just use the trait from anywhere you wish., (*6)

To simplify it, both, a behavior and a helper have also been created., (*7)

// in any table's `initialize()`:
$this->addBehavior('Gourmet/CommonMark.CommonMark');

// in `App\View\AppView` or any view/controller for that matter:
$this->loadHelper('Gourmet/CommonMark.CommonMark');

For more, please check the tests and the league/commonmark library., (*8)

Patches & Features

  • Fork
  • Mod, fix
  • Test - this is important, so it's not unintentionally broken
  • Commit - do not mess with license, todo, version, etc. (if you do change any, bump them into commits of their own that I can ignore when I pull)
  • Pull request - bonus point for topic branches

Bugs & Feedback

http://github.com/gourmet/common-mark/issues, (*9)

License

Copyright (c) 2015, Jad Bitar and licensed under The MIT License., (*10)

The Versions

08/07 2015

dev-master

9999999-dev https://github.com/gourmet/common-mark

Adds CommonMark support to CakePHP 3

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp markdown commonmark gourmet

08/07 2015

v1.0.2

1.0.2.0 https://github.com/gourmet/common-mark

Adds CommonMark support to CakePHP 3

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp markdown commonmark gourmet

19/06 2015

v1.0.1

1.0.1.0 https://github.com/gourmet/common-mark

Adds CommonMark support to CakePHP 3

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp markdown commonmark gourmet

27/03 2015

v1.0.0

1.0.0.0 https://github.com/gourmet/common-mark

Adds CommonMark support to CakePHP 3

  Sources   Download

MIT

The Requires

 

The Development Requires

cakephp markdown commonmark gourmet