Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Mar 18, 2022. It is now read-only.

kmaestro/php-ffi-gtk3

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;

About

PHP GTK3 Binding

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /