static-php-cli
static-php-cli copied to clipboard
Build standalone PHP binary on Linux, macOS, FreeBSD, Windows, with PHP project together, with popular extensions included.
Not urgent, but wanted to get this on the list. I don't have a Windows machine, but I have access to a free month of a Windows 365 cloud PC,...
## What does this PR do? Adds a GitHub Action for building on Windows. This is a first pass that builds an executable, but it's still WIP - please leave...
https://github.com/static-php/static-php-cli-hosted/actions/runs/8843621255/job/24284106389 Related code: https://github.com/easysoft/phpmicro/blob/e142401ee260c128ac9d6bb1e35f80040614437c/Makefile.frag#L11C1-L23C30 Checking the log, there is a difference of 8 bytes between the two micro.sfx compression stages.
The first hurdle when trying to run a compiled `php.exe` seems to be this  Clicking the 'More info' link reveals this: . This was fixed in crazywhalecc/static-php-cli#495 by upgrading to `xz` 5.4.7 but `spc` remains broken. Any...
 
如题  会出现一大串乱码和无法找到 composer autoload 的库 中文可以输出 使用 box 打包 micro 有以下扩展 curl,openssl,phar,swoole,zstd 并且开启 --with-micro-fake-cli 使用 php 运行原始 phar 可以正常运行