一个 PHP GUI 工具库。需要 php-7.4+ 64位!

dev-main 2022-12-29 20:34 UTC

This package is auto-updated.

Last update: 2024-09-29 05:43:18 UTC


README

使用纯 PHP 和 FFI 编写的 Gtk。

开发状态: 警告:API 不稳定 警告:许多功能未实现/支持。

查看 'examples' 目录中的示例代码。其他内容可能无法工作。

代码: https://github.com/ghostjat/gtk

许可证: LGPL 2.1+

要求

  • php_ 7.4+
  • FFI_

.. _ffi: https://php.ac.cn/manual/en/class.ffi .. _php: https://php.ac.cn/

安装

composer require ghostjat/gtk

用法


use gtk\core;
use gtk\window;
use gtk\webView;

$window = new window();
$window->set_title('php-webkit');
$window->set_default_size(400, 240);
$webview = new webView();
$window->add($webview);
$webview->loadURL('https://github.com/ghostjat/gtk');
$window->show_all();
$window->connect('destroy', function(){
    core::main_quit();
});
core::main();

搜索路径


TODO

Documentation
-------------
TODO