markup-carve / symfony-carve
Symfony bundle to render Carve markup to HTML via carve-php.
Package info
github.com/markup-carve/symfony-carve
Type:symfony-bundle
pkg:composer/markup-carve/symfony-carve
Fund package maintenance!
Requires
- php: ^8.2
- markup-carve/carve-php: ^0.1.17
- psr/log: ^1.1 || ^2.0 || ^3.0
- symfony/cache-contracts: ^2.5 || ^3.0
- symfony/config: ^6.4 || ^7.0
- symfony/console: ^6.4 || ^7.0
- symfony/dependency-injection: ^6.4 || ^7.0
- symfony/http-kernel: ^6.4 || ^7.0
Requires (Dev)
- php-collective/code-sniffer: ^0.6.0
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^11.0 || ^12.0 || ^13.0
- symfony/cache: ^6.4 || ^7.0
- symfony/framework-bundle: ^6.4 || ^7.0
- symfony/twig-bundle: ^6.4 || ^7.0
- symfony/validator: ^6.4 || ^7.0
- symfony/yaml: ^6.4 || ^7.0
- twig/twig: ^3.0
Suggests
- symfony/cache: To cache rendered HTML through a cache pool
- symfony/twig-bundle: To use the {{ value|carve }} Twig filter and carve() function
- symfony/validator: To use the ValidCarve constraint
- symfony/yaml: To read YAML frontmatter through RenderedCarve::meta()
Provides
None
Conflicts
None
Replaces
None
README
Symfony bundle for Carve 0.2 through the unreleased carve-php Carve API. It provides Twig filters, services, validation, and console commands for rendering, formatting, linting, and HTML, Markdown, GFM, and Djot import.
This branch is a preview. Its Composer dependency is pinned to a specific carve-php main commit and is not a registry release. Carve 0.1 users stay on the 0.1 branch.
Install from git
Add this repository as a Composer VCS repository and require its main branch. Composer will fetch the pinned Carve engine commit declared in composer.json.
composer config repositories.symfony-carve vcs https://github.com/markup-carve/symfony-carve.git composer require markup-carve/symfony-carve:dev-main
Use
{{ '= Hello'|carve }}
Raw HTML is disabled and the Carve URL policy denies unsafe schemes by default. See the documentation for configuration, includes, commands, and current API gaps.