PHPackages                             developersharif/php-gui - 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. developersharif/php-gui

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

developersharif/php-gui
=======================

Cross-platform GUI development package for PHP using Tcl/Tk

v1.9(1mo ago)12841TclPHP &gt;=8.1CI passing

Since Apr 9Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/developersharif/php-gui)[ Packagist](https://packagist.org/packages/developersharif/php-gui)[ RSS](/packages/developersharif-php-gui/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (9)DependenciesVersions (20)Used By (0)

PHP GUI
=======

[](#php-gui)

**Build native desktop apps with PHP — no Electron, no web server, no compromises.**

[![Latest Release](https://camo.githubusercontent.com/c421eff5ec9dbde7c7a99677470c526dfb76c1a4ee09ac124a03328a097a79fd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646576656c6f7065727368617269662f7068702d6775693f7374796c653d666c61742d737175617265)](https://github.com/developersharif/php-gui/releases)[![PHP](https://camo.githubusercontent.com/9847427b3ad37d5f2f3122f63983977e1b0ab038e06a24272d8c4514725c11a0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312532422d626c75653f7374796c653d666c61742d737175617265266c6f676f3d706870)](https://php.net)[![License](https://camo.githubusercontent.com/4cf9813dc9aa4fc7482a8be683e990dd1e72e7d91b5d0e8ad3d7dc8820a257d0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f646576656c6f7065727368617269662f7068702d6775693f7374796c653d666c61742d737175617265)](LICENSE)[![Platform](https://camo.githubusercontent.com/6d080087a773027f36b853a6ea58f00a8aee753168933311ab5e6392dadde860/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f706c6174666f726d2d4c696e75782532302537432532306d61634f5325323025374325323057696e646f77732d6c69676874677265793f7374796c653d666c61742d737175617265)](#platform-support)

---

    demo-video.mp4    ---

PHP GUI gives you two ways to build desktop applications from the same PHP codebase:

ModeBest forEngine**[Native Widgets](#native-widgets)**System-style UIs — forms, dialogs, toolsTcl/Tk via FFI**[WebView](#webview-mode)**Modern UIs with HTML/CSS/JS (like Tauri, but PHP)WebKitGTK / WKWebView / WebView2Both modes work on Linux, macOS, and Windows with **zero system dependencies** on Linux — libraries are bundled.

---

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

[](#requirements)

MinimumPHP8.1+Extension`ext-ffi` enabled (`ffi.enable=true` in `php.ini`)Composerany recent version**Linux** — no extra packages needed (Tcl/Tk is bundled).
**macOS** — no extra packages needed.
**Windows** — no extra packages needed.

> **Enable FFI** if not already on:
>
> ```
> ; php.ini
> extension=ffi
> ffi.enable=true
> ```

---

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

[](#installation)

```
composer require developersharif/php-gui
```

That's it. No system Tcl/Tk install, no native build steps.

---

Quick Start
-----------

[](#quick-start)

Create `app.php`:

```
