ghostjat / iup
PHP bindings to the IUP-Toolkit for desktop application.
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 24
Watchers: 5
Forks: 5
Open Issues: 0
Language:C
Requires
- php: >=7.4.0
- ext-ffi: *
This package is auto-updated.
Last update: 2024-10-29 05:54:02 UTC
README
php-ffi experiment
php7.4 interface to the IUP toolkit for building GUI's.
Description
IUP is a multi-platform toolkit for building graphical user interfaces. IUP's purpose is to allow a program source code to be compiled in different systems without any modification. Its main advantages are:
- It offers a simple API.
- High performance, due to the fact that it uses native interface elements.
- Fast learning by the user, due to the simplicity of its API.
Synopsis
WARNING:
This module is in its early stages and should be considered a Work in Progress.
The interface is not final and may change in the future.
Sample GUI:
Sample code:
require __DIR__.'/../vendor/autoload.php';
use iup\core;
$iup = new core();
$multiText = $iup->text(null);
$vbox = $iup->vbox($multiText);
$iup->setAttribute($multiText, "MULTILINE", "YES");
$iup->setAttribute($multiText, "EXPAND", "YES");
$dlg = $iup->dialog($vbox);
$iup->setAttribute($dlg, 'TITLE', 'php-iup');
$iup->setAttribute($dlg, 'SIZE', 'QUARTERxQUARTER');
$iup->showXY($dlg, $iup::IUP_CENTER, $iup::IUP_CENTER);
$iup->setAttribute($dlg, 'USERSIZE', null);
$iup->mainLoop();
$iup->close();
Author
Shubham Chaudhary ghost.jat@gmail.com