Driver-based UI rendering and reusable component support for PHP applications

Maintainers

Package info

github.com/commonphp/ui

pkg:composer/comphp/ui

Statistics

Installs: 0

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

0.3 2026-05-19 22:43 UTC

This package is auto-updated.

Last update: 2026-05-20 00:16:02 UTC


README

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.

Requirements

  • PHP ^8.5
  • comphp/runtime:^0.3

Installation

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

composer require comphp/ui

Usage

<?php

// TODO: Write usage

Package Notes

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

Error Handling

Missing templates, invalid components, renderer failures, and driver errors should throw CommonPHP UI exceptions.

Documentation

License

MIT. See LICENSE.md.