UI Awesome provides the missing link between PHP backends and modern frontend frameworks.
We build fluid HTML generators, form field widgets, and framework-agnostic models whose markup fits any CSS framework.
Writing raw HTML inside PHP strings is messy and error-prone.
UI Awesome offers an object-oriented, fluent interface to generate complex UI components without leaving your PHP classes.
| Library | Description | Tech Stack |
|---|---|---|
| HTML | Fluid, immutable HTML5 tag generation | PHP HTML5 |
| HTML Field | Form fields bound to a model, with label and error | PHP Forms |
| Model | Typed model mapping, framework-agnostic | PHP Data Binding |
| Form Model | Form metadata and validation errors | PHP Validation |
use UIAwesome\Html\Form\Button;
// Create a styled button in pure PHP.
echo Button::tag()
->class('bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded')
->content('Subscribe')
->render();Maintained by the core team of yii2-framework and yii2-extensions.