Search by

markup-carve / carve-php

dereuromark

PHP parser for Carve, a lightweight markup language for documents and the web.

Package info

github.com/markup-carve/carve-php

Homepage

pkg:composer/markup-carve/carve-php

Fund package maintenance!

dereuromark

Statistics

Installs: 13 550

Dependents: 9

Suggesters: 0

Stars: 7

Open Issues: 2

0.1.16 2026-10-25 19:11 UTC

README

CI Coverage Latest Stable Version Total Downloads PHPStan PHP Version Software License

carve-php parses and renders Carve in PHP. It implements Carve spec 0.1. Read the Carve documentation for the language.

Install

composer require markup-carve/carve-php

Usage

use MarkupCarve\Carve\CarveConverter;

$converter = new CarveConverter();
$document = $converter->parse('# Hello /Carve/');
$html = $converter->render($document);

CLI basics:

vendor/bin/carve README.crv > README.html
vendor/bin/carve lint README.crv
vendor/bin/carve fmt README.crv
vendor/bin/carve migrate --from html page.html

Documentation