yggverse/yoda

Gemini 协议的 PHP-GTK 客户端

安装: 0

依赖: 0

建议: 0

安全: 0

星级: 1

关注者: 3

分支: 0

公开问题: 0

类型:项目

dev-main 2024-09-07 18:45 UTC

This package is auto-updated.

Last update: 2024-10-03 12:38:40 UTC


README

重要

这是一个实验性的 PHP / GTK3 分支,还可以参考 Rust-GTK4CPP-GTK4 实现

安装

自动

  • git clone https://github.com/YGGverse/Yoda.git
  • cd Yoda
  • git checkout PHP-GTK3
  • 运行 ./INSTALL.sh 以自动为 Linux 系统构建 Yoda,使用最新的 PHPPHP-CPPPHP-GTK3

工具不会更改全局 PHP 版本,不需要 root 权限,但可以选择通过 aptyum 安装系统依赖项

构建后

  • 启动,在应用程序菜单中打开 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

组件