PHPackages                             gourmet/common-mark - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. gourmet/common-mark

ActiveCakephp-plugin[Parsing &amp; Serialization](/categories/parsing)

gourmet/common-mark
===================

Adds CommonMark support to CakePHP 3

v1.0.2(10y ago)973.4k↓100%2[1 issues](https://github.com/gourmet/common-mark/issues)MITPHP

Since Mar 27Pushed 10y ago3 watchersCompare

[ Source](https://github.com/gourmet/common-mark)[ Packagist](https://packagist.org/packages/gourmet/common-mark)[ Docs](https://github.com/gourmet/common-mark)[ RSS](/packages/gourmet-common-mark/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (4)Used By (0)

CommonMark
==========

[](#commonmark)

[![Build Status](https://camo.githubusercontent.com/e09db46808b73232f51138d37f3391ce614cc817b52ba588cf8c8f0ce89b6370/68747470733a2f2f7472617669732d63692e6f72672f676f75726d65742f636f6d6d6f6e2d6d61726b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/gourmet/common-mark)[![Total Downloads](https://camo.githubusercontent.com/eac3e5bbbb15f29e186297ff75f5a92c5cb810e9bb1b9a2b35a896ebe553893f/68747470733a2f2f706f7365722e707567782e6f72672f676f75726d65742f636f6d6d6f6e2d6d61726b2f646f776e6c6f6164732e737667)](https://packagist.org/packages/gourmet/common-mark)[![License](https://camo.githubusercontent.com/13fbcbe15d32879733416d2de3ee2470219220f9c08a36c1a799c3f2d024f955/68747470733a2f2f706f7365722e707567782e6f72672f676f75726d65742f636f6d6d6f6e2d6d61726b2f6c6963656e73652e737667)](https://packagist.org/packages/gourmet/common-mark)

Adds [CommonMark](http://commonmark.org) support to [CakePHP 3](http://cakephp.org) using the [league/commonmark](http://github.com/thephpleague/commonmark) package.

What's included?
----------------

[](#whats-included)

- CommonMarkAwareTrait
- CommonMarkHelper
- CommonMarkBehavior *coming soon*

Install
-------

[](#install)

Using [Composer](http://getcomposer.org):

```
composer require gourmet/common-mark:~1.0

```

You then need to load the plugin. You can use the shell command:

```
bin/cake plugin load Gourmet/CommonMark

```

or by manually adding statement shown below to `boostrap.php`:

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

Usage
-----

[](#usage)

The plugin is basically a bridge *disguised* as a trait [`Gourmet\CommonMark\Utility\CommonMarkAwareTrait`](https://github.com/gourmet/common-mark/blob/master/src/Utility/CommonMarkAwareTrait.php), so you could just `use` the trait from anywhere you wish.

To simplify it, both, a behavior and a helper have also been created.

```
// 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](https://github.com/gourmet/common-mark/blob/master/tests/TestCase/Utility/CommonMarkAwareTraitTest.php#L31-L62) and the [league/commonmark](http://github.com/thephpleague/commonmark) library.

Patches &amp; Features
----------------------

[](#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 &amp; Feedback
-------------------

[](#bugs--feedback)

License
-------

[](#license)

Copyright (c) 2015, Jad Bitar and licensed under [The MIT License](http://www.opensource.org/licenses/mit-license.php).

###  Health Score

35

—

LowBetter than 81% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~51 days

Total

3

Last Release

3912d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ccb57ae849b67ade8d9c1e266bc2868183bbcf07fb6c66c2d45254a452272d54?d=identicon)[jadb](/maintainers/jadb)

---

Top Contributors

[![jadb](https://avatars.githubusercontent.com/u/33527?v=4)](https://github.com/jadb "jadb (10 commits)")

---

Tags

cakephpmarkdowncommonmarkgourmet

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gourmet-common-mark/health.svg)

```
[![Health](https://phpackages.com/badges/gourmet-common-mark/health.svg)](https://phpackages.com/packages/gourmet-common-mark)
```

###  Alternatives

[torchlight/torchlight-commonmark

A Commonmark extension for Torchlight, the syntax highlighting API.

28251.8k6](/packages/torchlight-torchlight-commonmark)[zoon/commonmark-ext-youtube-iframe

Extension for league/commonmark to replace youtube link with iframe

12273.1k1](/packages/zoon-commonmark-ext-youtube-iframe)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
