In-process AVIF and JPEG-XL image decoding, encoding, and header probing for PHP 8.3+, backed by statically linked builds of libavif and libjxl.
- Self-contained single
.so— vendored codec libraries linked with a symbol version script that exports onlyget_module; no systemlibavif/libjxlpackages or ImageMagick/GD delegates required. - In-process — no
shell_execto CLI binaries, no temporary files, and no FFI runtime requirement. - Multi-ABI — targets PHP 8.3, 8.4, and 8.5 (PIE
type: php-ext).
- PHP 8.3, 8.4, or 8.5 (NTS or ZTS)
- Linux
x86_64/aarch64
phpize
./configure --enable-codecs
make -j"$(nproc)"
php -n -d extension=modules/codecs.so --ri codecs<?php
declare(strict_types=1);
var_dump(Codecs\Codec::version());