ui2
A thin convenience layer over helgesverre/libui — native desktop GUI for PHP
Rich Widget Library
Fields, pickers, dialogs, custom-drawn widgets, tree/file browser, code editor, circular progress bars, and more.
Embedded WebView
Native browser engine (WKWebView / WebKitGTK / WebView2) inside a libui window with JS ↔ PHP bridge.
Cross-Platform
Runs on macOS, Linux, and Windows with native look and feel on each platform.
Composite Architecture
Build complex widgets from simpler ones with the Composite pattern. Patches integrate seamlessly with upstream containers.
Patch System
Extend upstream libui classes without forking — place overrides in patches/ and they mirror into vendor/ on install.
PHP 8.5+
Built for modern PHP with FFI, typed properties, enums, closures, and named arguments.