markup-carve / tempest-carve
Carve rendering for Tempest applications.
Fund package maintenance!
Requires
- php: ^8.5
- markup-carve/carve-php: ^0.1.17
- tempest/cache: ^3.19
- tempest/console: ^3.19
- tempest/mapper: ^3.19
- tempest/validation: ^3.19
- tempest/view: ^3.19
Requires (Dev)
- markup-carve/tempest-highlight-carve: ^0.1.2
- php-collective/code-sniffer: ^0.6.8
- phpstan/phpstan: ^2.2
- phpunit/phpunit: ^12.5
- symfony/cache: ^7.3 || ^8.0
- tempest/framework: ^3.19
Suggests
- markup-carve/tempest-highlight-carve: Highlights Carve fences when the tempest_highlight extension is enabled.
- phpunit/phpunit: Required to use the optional CarveAssertions testing trait.
- tempest/highlight: Required by the tempest_highlight extension that highlights fenced code.
Provides
None
Conflicts
None
Replaces
None
README
Render Carve, a lightweight markup language for documents and the web, in Tempest views with a safe-by-default component.
Install the development branch from Git. The package pins its Carve engine to a
specific commit on carve-php's main branch. Carve 0.1 users stay on the 0.1
branch.
composer config repositories.tempest-carve vcs https://github.com/markup-carve/tempest-carve.git composer config repositories.carve-php vcs https://github.com/markup-carve/carve-php.git composer require markup-carve/tempest-carve:dev-main php tempest discovery:generate --no-interaction
<x-carve :content="$document" />
This branch uses Carve 0.2 from a pinned carve-php development commit. The renderer supports named configurations, profiles, diagnostics, includes, caching, lint, formatting, HTML import, validation, and a model property type. Markdown, text, and ANSI service methods use Carve's built-in writers. Markdown import uses the engine importer. No registry release is required to install the pinned engine commit.
Tempest discovers the component and its CarveRenderer initializer from the
package. See Usage, Configuration,
Design, and Security for details.
Related
tempest-highlight-carve
adds Carve as a language to tempest/highlight,
so a .crv source listing can be syntax-highlighted. That is the complement to
this package: this one renders Carve to output, that one colors the source.
With both installed, the tempest_highlight extension highlights Carve fences
inside rendered documents.