cmark icon indicating copy to clipboard operation
cmark copied to clipboard

CommonMark for PHP

cmark

CommonMark API

Build Status Build status Coverage Status

Requires

  • libcmark version >= 0.28

Installation

From PECL

To install latest stable version

pecl install cmark

From sources

Use release branch for stable version or develop branch.

phpize
./configure --with-cmark[=DIR] [ --with-cmark-coverage ]
make
make test

Notice: without the DIR argument, the configure script rely on pkg-config output to locate the libcmark library.

Binary packages

Microsoft Windows

Download DLL from the pecl page.

Fedora / CentOS / RHEL

RPM are available in Remi's repository.

Documentation

Documentation can be found in the PHP Manual