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

Linux macOS Windows

## Select Extensions

amqp
apcu
ast
bcmath
brotli
bz2
calendar
ctype
curl
dba
dio
dom
ds
ev
event
exif
ffi
fileinfo
filter
ftp
gd
gettext
gmp
gmssl
grpc
iconv
igbinary
imagick
imap
inotify
intl
ldap
libxml
lz4
mbregex
mbstring
memcache
memcached
mongodb
msgpack
mysqli
mysqlnd
odbc
opcache
openssl
opentelemetry
parallel
password-argon2
pcntl
pdo
pdo_mysql
pdo_odbc
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
xdebug
xhprof
xlswriter
xml
xmlreader
xmlwriter
xsl
xz
yac
yaml
zip
zlib
zstd
Select common extensions
Select all
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.

It is not possible to build all extensions at the same time, as some extensions conflict with each other. Please select the extensions you need.

## 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.4 --for-extensions "" --prefer-pre-built
Compile command
./spc build --build-cli ""
craft.yml
php-version: 8.4 extensions: "" sapi: cli build-options: prefer-pre-built: true