Skip to content

scorninpc/php-gtk3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8d0a5fb · Feb 10, 2025
Jul 9, 2024
Sep 17, 2024
Feb 8, 2025
May 10, 2022
Feb 10, 2025
Jan 16, 2024
Feb 5, 2023
Oct 2, 2019
Jul 21, 2024
Sep 17, 2024
Feb 10, 2025
Jul 27, 2024
Feb 22, 2023
Feb 22, 2023
Apr 14, 2019

Repository files navigation

PHP-GTK3

PHP-GTK is a bind of GTK 3 to create desktop applications with PHP

Acknowledgements

Contributing

Contributions are always welcome!

See issues for problems and improvements.

How its works

PHP-GTK3 work with a middleway of PHP-CPP. In addition to making work faster, syntax and how to program closely resemble PHP, so more people can contribute to the project. Another strong point, perhaps the most important are the updates of Zend.h. In the migration from PHP5 to PHP7 for example, every bind was lost. In that way, there is a nice community working on PHP-CPP to make this updated

PHP-GTK 3 Cookbook

You can find a cookbook of codes compiled and organized in http://andor.com.br/php-gtk/cookbook

VSCode

This is VSCode extension (not official) written by subabrain

Example

<?php

// Initialize
Gtk::init();

// Callback for when window is closed
function GtkWindowDestroy($widget=NULL, $event=NULL)
{
	Gtk::main_quit();
}

// Create a window
$win = new GtkWindow();
$win->set_default_size(300, 200);

// Connect "close" event with callback
$win->connect("destroy", "GtkWindowDestroy");

// Show window
$win->show_all();

// Start
Gtk::main();

Involved

Screenshots

GTKTreeview

GTKTreeview

GTK interactive debugger

GTK interactive debugger

Widgets

Tooltips