Skip to content

# CLI Build Command Generator ​

TIP

The extensions selected below may contain extensions that are not supported by the selected operating system, which may cause compilation to fail. Please check Supported Extensions first.

## Select Build OS

LinuxmacOSWindows

## Select Extensions

amqp
apcu
ast
bcmath
bz2
calendar
ctype
curl
dba
dio
dom
ds
event
exif
fileinfo
filter
ftp
gd
gettext
gmp
gmssl
grpc
iconv
igbinary
imagick
imap
inotify
intl
ldap
libxml
mbregex
mbstring
memcache
mongodb
msgpack
mysqli
mysqlnd
opcache
openssl
parallel
password-argon2
pcntl
pdo
pdo_mysql
pdo_pgsql
pdo_sqlite
pdo_sqlsrv
pgsql
phar
posix
protobuf
rar
rdkafka
readline
redis
session
shmop
simdjson
simplexml
snappy
soap
sockets
sodium
spx
sqlite3
sqlsrv
ssh2
swoole
swoole-hook-mysql
swoole-hook-pgsql
swoole-hook-sqlite
swow
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
uuid
uv
xhprof
xlswriter
xml
xmlreader
xmlwriter
xsl
yac
yaml
zip
zlib
zstd
Select common extensions
Unselect all
Select Dependencies

TIP

After selecting the extensions, the unselectable items are essential dependencies. In the compiled dependencies list, optional dependencies consist of existing extensions and optional dependencies of libraries. Optional dependencies will be added in --with-libs parameter.

## Build Target

cli
fpm
micro
embed
all

## Build Options

Build Environment |
Download PHP version |
Enable debug message | YesNo
Enable ZTS | YesNo
Download with corresponding extension dependencies | YesNo
Download pre-built dependencies if possible (reduce compile time) | YesNo
Enable UPX compression (reduce binary size) | YesNo

## Hardcoded INI options

## Result

Download spc binary command
curl -fsSL -o spc.tgz https://dl.static-php.dev/static-php-cli/spc-bin/nightly/spc-linux-x86_64.tar.gz && tar -zxvf spc.tgz && rm spc.tgz
Download sources by extensions command
./spc download --with-php=8.2 --for-extensions "" --prefer-pre-built
Compile command
./spc build --build-cli ""