Refactor or keep current? | 发布重构版或保持现状? #29
Replies: 7 comments 9 replies
-
支持之后直接发布新版本,我觉得当前版本可以不用维护了 |
Beta Was this translation helpful? Give feedback.
-
创建一个新分支,并且设置为默认分支即可 git checkout --orphan static-php-cli-next
git rm -rf .
|
Beta Was this translation helpful? Give feedback.
-
我觉得这个玩法能不能实现一种创新方式 |
Beta Was this translation helpful? Give feedback.
-
当前进度完成到了 macOS 平台的部分扩展,基础 CLI 框架已经编写完毕,但 Linux 系统下可能需要使用额外的 musl-libc,如果使用的系统没有 musl 时可能需要先编译安装 musl。 |
Beta Was this translation helpful? Give feedback.
-
目前进度完成了 macOS 系统的静态 PHP 编译工作,同时适配了部分扩展。相关重构源码见 refactor 分支 |
Beta Was this translation helpful? Give feedback.
-
目前提供了部分 Linux 的支持,但 Linux 环境有一定的要求,比如需要包管理安装 musl-libc、build-essential 等。 目前扩展支持情况:https://github.com/crazywhalecc/static-php-cli/blob/refactor/ext-support.md |
Beta Was this translation helpful? Give feedback.
-
起因
因为作者长时间没有完善当前版本的项目了,因为本项目目前有很多局限性:
综上所述,作者在私有仓库维护了一个 PHP 编写的 static-php-cli 项目,用于多系统编译 PHP 和 micro 二进制,同时参考了 lwmbs、swoole-cli 和 phpmicro 项目的部分源码,就是作者正在编写的新版本。新版本具有可以拆装扩展和库、自动更新和打包资源等功能,同时几乎支持任意主流的 Linux、Windows 和 macOS。
但现有的 Bash 版也有一定的优势,就是简洁、易懂,无任何第三方库的使用,仅使用 *nix 工具集和 shell、Dockerfile 即可完成最小编译。
所以,现在征集一下各方的意见。如果同意作者发布重构版,可以数个大拇指,不同意的话就刷个火箭。
Refactor reason
Because the author has not improved the current version of the project for a long time, the project has many limitations:
However, the existing Bash version also has certain advantages. It is concise and easy to understand, without the use of any third-party libraries, and only use *nix open source tools. By the way, shell, Dockerfile can complete the minimum compilation.
So now, let's gather the opinions of all parties. If you agree with the author to release the refactor version, you can give me a thumb. If you disagree, you can send me a rocket.
Beta Was this translation helpful? Give feedback.
All reactions