comphp/ui-twig

UI Driver for CommonPHP that wraps the Twig library for output rendering

Maintainers

Package info

github.com/commonphp/ui-twig

pkg:composer/comphp/ui-twig

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-master 2026-05-17 04:45 UTC

This package is auto-updated.

Last update: 2026-05-20 18:02:54 UTC


README

UI driver for CommonPHP that wraps Twig for output rendering and reusable component templates.

Requirements

  • PHP ^8.5
  • comphp/ui:^0.3
  • twig/twig

Installation

Once this package is available through your Composer repositories, install it with:

composer require comphp/ui-twig

Usage

<?php

// TODO: Write usage

Driver Notes

This 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.

Error Handling

Template lookup, rendering, component, configuration, and driver failures should throw CommonPHP UI driver exceptions instead of returning ambiguous false values.

Documentation

License

MIT. See LICENSE.md.