Skip to content
This repository was archived by the owner on Mar 18, 2022. It is now read-only.

kmaestro/php-ffi-gtk3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1f07d4d · Mar 18, 2022

History

48 Commits
Feb 13, 2022
Jun 7, 2020
Jun 28, 2020
Feb 13, 2022
Jun 28, 2020
Jun 28, 2020
Mar 18, 2022
Feb 13, 2022
Jul 1, 2020
Jun 28, 2020

Repository files navigation

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;