kmaestro / gtk
Installs: 50
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 2
Forks: 0
Open Issues: 0
Language:C
Requires
- php: ^8.0
- ext-ffi: ^8.0
- serafim/ffi-loader: ^1.0
This package is auto-updated.
Last update: 2022-03-21 15:40:07 UTC
README
The project is moved to https://github.com/PHP-GTK/gtk
Requirement
- php (8.1)
- ext-FFI
- gtk-3
Installation
composer require kmaestro/gtk
Linux
sudo apt-get install libgtk-3-dev
Example:
require __DIR__ . '/vendor/autoload.php'; use Gtk3\Gtk; use Gtk3\Gtk\Window; use Gtk3\Enum\WindowEnum; $gtk = Gtk::getInstance(); $gtk->init(); $window = new Window(WindowEnum::topLevel); $window->widget()->show(); $gtk->main(); return 0;