markup-carve / carve-php
PHP parser for Carve, a lightweight markup language for documents and the web.
Fund package maintenance!
0.1.16
2026-10-25 19:11 UTC
Requires
- php: ^8.2
Requires (Dev)
- brianium/paratest: ^7.8
- nikic/php-fuzzer: ^0.0.11
- php-collective/code-sniffer: ^0.6.8
- phpstan/phpstan: ^2.1.32
- phpunit/phpunit: ^11.0 || ^12.0 || ^13.0
Suggests
- ext-dom: Required for HTML import and HTML heading-ID conversion.
- ext-intl: Recommended for heading-ID transliteration: enables ICU romanization of non-Latin scripts (e.g. CJK, Arabic). Without it, a baked map covers Latin/Cyrillic/punctuation identically and other scripts fall back to the generated `section` id.
Provides
None
Conflicts
None
Replaces
None
- dev-main
- 0.1.16
- 0.1.15
- 0.1.14
- 0.1.13
- 0.1.12
- 0.1.11
- 0.1.10
- 0.1.9
- 0.1.8
- 0.1.7
- 0.1.6
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- 0.1.0-RC1
- dev-fix/4909-losing-text-definition
- dev-fix/5465-repeated-note-marker
- dev-fix/4894-nested-attached-fence
- dev-fix/4822-lazy-line-after-list-or-quote
- dev-fix/4814-nested-task-item-description
- dev-fix/5250-php-attachment
- dev-fix/lazy-description-owner
- dev-next
This package is auto-updated.
Last update: 2026-11-08 12:09:54 UTC
README
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