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

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

gabrielrcouto/php-gui
=====================

Extensionless PHP Graphic User Interface library

v0.1.1(7y ago)2.2k7.5k—3.6%170[30 issues](https://github.com/gabrielrcouto/php-gui/issues)[4 PRs](https://github.com/gabrielrcouto/php-gui/pulls)MITPHPPHP &gt;=5.6

Since Apr 8Pushed 4y ago113 watchersCompare

[ Source](https://github.com/gabrielrcouto/php-gui)[ Packagist](https://packagist.org/packages/gabrielrcouto/php-gui)[ Docs](http://github.com/gabrielrcouto/php-gui)[ RSS](/packages/gabrielrcouto-php-gui/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (6)Versions (5)Used By (0)

[![php-gui](https://cloud.githubusercontent.com/assets/2197005/14036936/f3457ba0-f21c-11e5-886a-f754e8109c28.png)](https://cloud.githubusercontent.com/assets/2197005/14036936/f3457ba0-f21c-11e5-886a-f754e8109c28.png)

Extensionless PHP Graphic User Interface library

[![made with PHP S2](https://cloud.githubusercontent.com/assets/2197005/14338716/85ef00a2-fc4f-11e5-8ae8-7a0d5be74723.gif)](https://cloud.githubusercontent.com/assets/2197005/14338716/85ef00a2-fc4f-11e5-8ae8-7a0d5be74723.gif)

[![Build Status](https://camo.githubusercontent.com/e2e024521a1dd8eddbdd77dcf5b321e8e19fc74256638cce81238fdf35d917d1/68747470733a2f2f7472617669732d63692e6f72672f6761627269656c72636f75746f2f7068702d6775692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/gabrielrcouto/php-gui)[![Latest Stable Version](https://camo.githubusercontent.com/d8f01848fc6f619777f40a436ee0b3646acb3a236d1d20b69624a7e774ae8528/68747470733a2f2f706f7365722e707567782e6f72672f6761627269656c72636f75746f2f7068702d6775692f762f737461626c65)](https://packagist.org/packages/gabrielrcouto/php-gui)[![Software License](https://camo.githubusercontent.com/f251623e510f5909f16ae3f4e6e548dac11340b9fde1a99be26b015b39272c00/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c6174)](http://gabrielrcouto.mit-license.org/)[![Packagist](https://camo.githubusercontent.com/9b8cb8fdb221c54d659d888db33dd54491ebafa5287425b10dfe8990681585e2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7061636b61676973742d696e7374616c6c2d627269676874677265656e2e737667)](https://packagist.org/packages/gabrielrcouto/php-gui)

Table of Contents
-----------------

[](#table-of-contents)

- [Why](#why)
- [Requirements](#requirements)
- [Usage](#usage)
- [Documentation](#documentation)
- [How it works](#how-it-works)
- [Contributors Guide](#contributors-guide)
- [TO-DO](#to-do)
- [Credits](#credits)
- [License](#license)

Why
---

[](#why)

PHP can be more than a "Web Language", it's a fast language, with a cross platform interpreter and a good CLI. GUI is a natural step for completing this ecosystem.

For many years, GUI projects are being developed for PHP, like [PHP-GTK](http://gtk.php.net/), [PHP-QT](https://sourceforge.net/projects/php-qt/), [wxPHP](http://wxphp.org/) and so many others, but none of them became popular.

This project aims to solve the most common problems of existing "GUI Projects":

- The need for installing an extension
- Cross platform
- No external dependencies
- Easy to install (composer require php-gui) / Easy to use ($button = new Button)

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

[](#requirements)

The following PHP versions are supported:

- PHP 5.6
- PHP 7
- HHVM

And OS:

- Linux x64
- Windows x64
- Mac OSX (tested on 10.10.x and 10.11.x)

Usage
-----

[](#usage)

Download the library using [composer](https://packagist.org/packages/gabrielrcouto/php-gui):

#### Stable version

[](#stable-version)

```
$ composer require gabrielrcouto/php-gui
```

#### Latest version (development)

[](#latest-version-development)

```
$ composer require gabrielrcouto/php-gui:dev-master
```

Now, you can build a GUI application. Let's do a Hello World!

Create the file 'myapp.php':

```
