scorninpc / php-gtk3

GTK3 extension for PHP

Home Page:https://andor.com.br/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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();

Involved

Screenshots

GTKTreeview

GTKTreeview

GTK interactive debugger

GTK interactive debugger

Widgets

Tooltips

About

GTK3 extension for PHP

https://andor.com.br/

License:GNU Lesser General Public License v3.0


Languages

Language:C++ 98.9%Language:PHP 0.7%Language:Makefile 0.4%