markup-carve/carve-php

PHP parser for Carve, a human-centered lightweight markup language derived from djot-php.

Maintainers

Package info

github.com/markup-carve/carve-php

pkg:composer/markup-carve/carve-php

Fund package maintenance!

dereuromark

Statistics

Installs: 124

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 1

dev-main 2026-05-24 00:27 UTC

README

PHP parser and renderer for Carve, a post-Djot lightweight markup language with visual mnemonics and human-centered design.

Warning

Alpha — syntax fork in progress. This repository was forked from php-collective/djot-php on 2026-05-13 and is being adapted to Carve syntax. While the migration is in flight, the parser still recognises Djot syntax in most places. Do not depend on the API yet.

Status

The Carve\ namespace and class names are in place. The actual Carve syntax rules (delimiter swaps, table changes, captions, custom extension syntax) are being applied in tracked steps — see the project roadmap.

Origins

Carve-PHP is a hard fork of djot-php by the PHP Collective. The fork preserves the architecture, AST, renderer pipeline, profiles, and extensions, and replaces Djot's syntax rules with Carve's. The MIT license carries over; copyright lines remain in LICENSE.

For the original Djot implementation, use php-collective/djot instead.

Installation

composer require markup-carve/carve-php

Usage

use Carve\CarveConverter;

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

License

MIT — see LICENSE.