PHP Static Binary Builder. Building PHP static binary for personal project and testing.
Please, do not use this for production.
PHP static binary compiled with modules (php -m
):
bcmath
bz2
calendar
Core
ctype
curl
date
dom
event
exif
fileinfo
filter
gd
hash
iconv
igbinary
intl
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
Phar
posix
random
readline
redis
Reflection
secp256k1_nostr
session
shmop
SimpleXML
soap
sockets
sodium
SPL
sqlite3
standard
swoole
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
xml
xmlreader
xmlwriter
xsl
zip
zlib
Clone repository
git clone https://github.com/atrifat/php-static-builder
cd php-static-builder
If you have act then you can build PHP static binary using one simple command:
act --env PHP_VERSION=8.2.10
Otherwise you can also build using builder-alpine docker image:
docker run --rm -v `pwd`:/project -it ghcr.io/atrifat/builder-alpine:latest
and run build.sh
chmod +x build.sh
PHP_VERSION=8.2.10 ./build.sh
MIT
Rif'at Ahdi Ramadhani (atrifat)