PHPackages                             yangweijie/ui2 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. yangweijie/ui2

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

yangweijie/ui2
==============

tool with helgesverre/libui anthor libui gui toolkit.

10PHP

Since Jun 28Pushed todayCompare

[ Source](https://github.com/yangweijie/HelgeSverre-libui-sdk)[ Packagist](https://packagist.org/packages/yangweijie/ui2)[ RSS](/packages/yangweijie-ui2/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

yangweijie/ui2
==============

[](#yangweijieui2)

**A thin convenience layer over [`helgesverre/libui`](https://github.com/HelgeSverre/libui)** — a native desktop GUI toolkit for PHP powered by `libui-ng` via FFI.

This package adds composite widgets, field helpers, picker dialogs, custom-drawn widgets, an embedded WebView engine, tree/file browser, code editor, and circular progress bars on top of the upstream's typed widget classes, custom 2D drawing, tables, menus, and dialogs.

Requirements
------------

[](#requirements)

- **PHP ≥ 8.5** (`ext-ffi` required)
- Platform library: `libui-ng` (ships prebuilt for macOS, Linux, Windows in the upstream)
- For WebView-based widgets: the PebView native library is downloaded and compiled via `composer install`

> ⚠️ The upstream requires PHP 8.5+. PHP 8.4.x will fail on `composer install`.

Installation
------------

[](#installation)

```
composer require yangweijie/ui2
```

The `post-autoload-dump` script automatically:

1. Applies patches to the upstream vendor files (see [Patch system](#patch-system))
2. Builds the native PebView library from source on macOS (requires Xcode CLI tools)

Quick start
-----------

[](#quick-start)

```
