The project is moved to https://github.com/PHP-GTK/gtk
Requirement
- php (8.1)
- ext-FFI
- gtk-3
Installation
composer require kmaestro/gtkLinux
sudo apt-get install libgtk-3-devExample:
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;On this page
Languages
C70.9%PHP24.6%CSS2.5%Makefile2.0%
Contributors
Created January 8, 2020
Updated December 7, 2024