kmaestro / gtk
This package is abandoned and no longer maintained.
The author suggests using the pgtk/gtk package instead.
0.0.4
2021-01-10 19:22 UTC
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;