PHPackages                             helgesverre/libui - 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. helgesverre/libui

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

helgesverre/libui
=================

Native desktop GUI for PHP 8.5+ via libui-ng and FFI.

v0.7.1(1mo ago)3141MITPHP &gt;=8.5

Since Jun 21Compare

[ Source](https://github.com/HelgeSverre/libui)[ Packagist](https://packagist.org/packages/helgesverre/libui)[ RSS](/packages/helgesverre-libui/feed)WikiDiscussions Synced 2w ago

READMEChangelog (9)Dependencies (6)Versions (11)Used By (1)

Libui for PHP
=============

[](#libui-for-php)

> Native desktop GUIs in PHP — a typed, object-oriented binding to [`libui-ng`](https://github.com/libui-ng/libui-ng) driven by PHP's built-in **FFI**. Real native windows, widgets, dialogs, 2D drawing and text. No compiled PHP extension, no C toolchain on the user's machine.

[![CI](https://github.com/HelgeSverre/libui/actions/workflows/ci.yml/badge.svg)](https://github.com/HelgeSverre/libui/actions/workflows/ci.yml)[![Packagist Version](https://camo.githubusercontent.com/91c68fec92fb9a64375eed6451d0e265fb8a6e2c846c62ba505fad68278b9f8b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f68656c67657376657272652f6c69627569)](https://packagist.org/packages/helgesverre/libui)[![PHP](https://camo.githubusercontent.com/299f9ae626b57ea28ce68d113d7c6e20c289b7000f47da4d9819162799420399/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e352532422d373737626233)](https://camo.githubusercontent.com/299f9ae626b57ea28ce68d113d7c6e20c289b7000f47da4d9819162799420399/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e352532422d373737626233)[![License](https://camo.githubusercontent.com/f8df3091bbe1149f398a5369b2c39e896766f9f6efba3477c63e9b4aa940ef14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)](https://camo.githubusercontent.com/f8df3091bbe1149f398a5369b2c39e896766f9f6efba3477c63e9b4aa940ef14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)

 [![Generative flow field](docs/flowfield.png)](docs/flowfield.png) [![Markdown editor with live preview](docs/markdown.png)](docs/markdown.png)

Install
-------

[](#install)

```
composer require helgesverre/libui
```

Requires **PHP 8.5+** with the **FFI** extension (enabled by default on the CLI). Prebuilt `libui` binaries ship inside the package for **macOS**, **Linux**(x86\_64 + aarch64) and **Windows** — there's no compiler or build step. Linux just needs **GTK 3** installed at runtime; see [Platform support](#platform-support).

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

[](#quick-start)

```
