Installation
From your application's root directory:
sh
composer require dereuromark/cakephp-markup
bin/cake plugin load MarkupComposer checks supported PHP and CakePHP versions against composer.json. The plugin does not require a database table or plugin routes.
Choose a converter
Install only the libraries for the formats you use. For the beginner Markdown example:
sh
composer require league/commonmark:^2For BBCode:
sh
composer require mjohnson/decoda:^6.12For Djot:
sh
composer require php-collective/djot:^0.1.30For Carve:
sh
composer require markup-carve/carve-php:^0.1.1Native PHP highlighting and the JavaScript-highlighter wrapper need no additional PHP package. The JavaScript wrapper still needs your chosen browser library and its CSS; see Code highlighting.
BBCode uses the media-embed video filter when its package is installed. To enable that integration:
sh
composer require dereuromark/media-embed:^1Without it, Decoda's standard video filter is used. Older media-embed versions conflict with this plugin branch.