marko / view-twig
Twig templating driver for Marko Framework View
0.11.0
2026-10-06 13:47 UTC
Requires
- php: ^8.5
- marko/routing: 0.11.0
- marko/view: 0.11.0
- twig/twig: ^3.0
Requires (Dev)
- marko/testing: 0.11.0
- pestphp/pest: ^4.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Twig templating driver for the Marko Framework.
Installation
composer require marko/view-twig
Note: marko/view-twig conflicts with marko/view-latte --- install only one view driver per project.
Quick Example
$view->render('blog::post/index', ['posts' => $posts]);
<a href="{{ route('blog.post.show', {slug: post.slug}) }}">{{ post.title }}</a>
Documentation
Full usage, API reference, and examples: marko/view-twig