yggverse / yoda
Gemini 协议的 PHP-GTK 客户端
dev-main
2024-09-07 18:45 UTC
Requires
- yggverse/gemini: ^1.0
- yggverse/gemtext: ^1.0
- yggverse/net: ^1.8
- yggverse/nex: ^1.1
This package is auto-updated.
Last update: 2024-10-03 12:38:40 UTC
README
重要
这是一个实验性的 PHP / GTK3 分支,还可以参考 Rust-GTK4 和 CPP-GTK4 实现
安装
自动
git clone https://github.com/YGGverse/Yoda.git
cd Yoda
git checkout PHP-GTK3
- 运行
./INSTALL.sh
以自动为 Linux 系统构建 Yoda,使用最新的 PHP、PHP-CPP 和 PHP-GTK3
工具不会更改全局 PHP 版本,不需要 root 权限,但可以选择通过 apt
或 yum
安装系统依赖项
构建后
- 要 启动,在应用程序菜单中打开 Yoda 或使用生成的
yoda.sh
启动器 - 要 更新,再次运行
INSTALL.sh
- 要 卸载,只需删除
build
文件夹和位于~/.yoda
中的配置数据
手动
环境
apt install autoconf\ automake\ bison\ build-essential\ composer\ git\ libbz2-dev\ libcurl4-openssl-dev\ libfreetype6-dev\ libgladeui-dev\ libgtk-3-dev\ libgtksourceview-3.0-dev\ libjpeg-dev\ libonig-dev\ libpng-dev\ libpq-dev\ libreadline-dev\ libsqlite3-dev\ libssl-dev\ libtool\ libwebp-dev\ libwnck-dev\ libxml2-dev\ libxpm-dev\ libxslt1-dev\ libzip-dev\ re2c
PHP
确保安装并配置了版本 8.1 或更高,并使用以下选项
./configure --enable-mbstring\
--enable-pcntl\
--enable-shmop\
--enable-sockets\
--enable-static\
--with-gettext\
--with-openssl\
--with-pdo-sqlite
PHP-CPP
有关详细信息,请参阅官方 文档
从源代码构建
git clone https://github.com/fast-debug/php-cpp.git
cd php-cpp
make && sudo make install
PHP-GTK
从源代码构建
git clone https://github.com/fast-debug/php-gtk3.git
cd php-gtk3
make && sudo make install
Yoda
git clone https://github.com/YGGverse/Yoda.git
cd Yoda
composer install
启动
php -dextension=php-gtk3.so src/Yoda.php
组件
- gemini-php - Gemini 协议连接
- gemtext-php - Gemtext 操作
- net-php - DNS 解析器和网络地址功能
- nex-php - NEX 协议连接