UI driver for CommonPHP that wraps Twig for output rendering and reusable component templates.
- PHP
^8.5 comphp/ui:^0.3twig/twig
Once this package is available through your Composer repositories, install it with:
composer require comphp/ui-twig<?php
// TODO: Write usageThis driver is intended to let CommonPHP UI render components, layouts, and interface elements through Twig while keeping the core UI package rendering-engine neutral.
Global components should be provided through the driver or its configuration so applications can share consistent UI primitives without locking the UI package to Twig directly.
Template lookup, rendering, component, configuration, and driver failures should throw CommonPHP UI driver exceptions instead of returning ambiguous false values.
MIT. See LICENSE.md.