CommonPHP UI provides driver-based UI rendering and reusable component support for CommonPHP applications. It defines the common structure for rendering global components, layouts, and interface elements through interchangeable rendering drivers.
The package keeps UI composition consistent without locking applications to one rendering engine or template implementation.
- PHP
^8.5 comphp/runtime:^0.3
Once this package is available through your Composer repositories, install it with:
composer require comphp/ui<?php
// TODO: Write usageThis package should provide driver-based UI rendering and global component support without locking the system to a specific renderer. Twig, PHP templates, or other rendering engines should be implemented as UI drivers.
Missing templates, invalid components, renderer failures, and driver errors should throw CommonPHP UI exceptions.
MIT. See LICENSE.md.