PHP code example of kmaestro / gtk
1. Go to this page and download the library: Download kmaestro/gtk library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kmaestro / gtk example snippets
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;