Skip to content

commonphp/ui-twig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CommonPHP Twig UI Driver

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.

About

No description, website, or topics provided.

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages