Skip to content

Getting started ​

Carve is a text markup language for headings, links, lists, and other document content. This CakePHP plugin renders Carve text in templates and provides validation, stored HTML, commands, and caching.

Render your first text in five minutes ​

  1. Install the plugin with Composer and load it in Application::bootstrap().
  2. Add the MarkupCarve/CakeCarve.Carve helper in AppView::initialize().
  3. Put this in a CakePHP template:
php
<?= $this->Carve->convert('Hello, *CakePHP*.') ?>

The page receives:

html
<p>Hello, <strong>CakePHP</strong>.</p>
  1. For saved content, attach the behavior to generate an HTML column.
  2. Add validation for length and allowed markup. Render visitor text with the comment preset.

Find the next task ​

TaskGuide
Learn the markupCarve syntax
Render text or filesRendering and options
Render templatesViews and helper
Change app defaultsConfiguration
Process files from the shellCommands
Reuse render resultsCaching
Add markup featuresExtensions

Released under the MIT License.