Skip to main content
You can use the Upsun composable image to install multiple runtimes and tools in your application container. When using the composable image, see how you can:
PHP has a number of extensions developed by members of the community. Some of them are available for Upsun containers. You can define the PHP extensions you want to enable or disable: You can also include configuration options for specific extensions. The following table shows all extensions that are available (●) and on by default (✔). You can turn on the available ones with the extensions key and turn off those on by default with the disabled_extensions key.
Default (enabled) Built-in Available
ExtensionDescription8.58.48.38.28.18.07.47.37.27.17.05.65.55.4
amqpRabbitMQ/AMQP messaging client.
apcLegacy APC opcode/user cache.
apcuIn-memory user data cache (APCu).
apcu_bcBackward-compatibility layer for APCu.
applepayPHP extension for applepay support.
bcmathArbitrary precision mathematics.
blackfireBlackfire profiling probe.
bz2bzip2 compression support.
calendarCalendar conversion functions.
ctypeCharacter type checking functions.
curlHTTP and network requests via libcurl.
datadog-profilingDatadog continuous profiler.
dbaDBA key-value database abstraction.
domDOM XML document manipulation.
enchantSpell checking via Enchant.
eventHigh-performance event loop bindings.
exifRead image EXIF metadata.
ffiForeign Function Interface (C libraries).
fileinfoMIME type and file metadata detection.
ftpFTP client functions.
gdImage creation and manipulation (GD).
gearmanGearman job queue client/worker.
geoipIP geolocation lookups.
gettextNative gettext i18n support.
gmpBig integer arithmetic (GMP).
gnupgGnuPG encryption/signature support.
grpcgRPC client/server support.
httpPHP extension for http support.
iconvCharacter set conversion.
igbinaryCompact binary serializer.
imagickImage processing with ImageMagick.
imapIMAP/POP3/NNTP mail access.
interbaseFirebird/InterBase database driver.
intlInternationalization (ICU) features.
ioncubeionCube loader support.
jsonJSON encode/decode functions.
ldapLDAP directory access.
mailparseEmail/MIME parsing utilities.
mbstringMultibyte string functions.
mcryptLegacy mcrypt encryption functions.
memcacheMemcache client extension.
memcachedMemcached client extension.
mongoLegacy MongoDB driver.
mongodbMongoDB driver.
msgpackMessagePack serialization.
mssqlLegacy Microsoft SQL Server driver.
mysqlLegacy MySQL driver.
mysqliMySQL improved driver.
mysqlndMySQL native driver.
newrelicNew Relic PHP agent.
oauthOAuth client utilities.
odbcODBC database connectivity.
opcacheBytecode cache and optimizer.
openswooleOpenSwoole async networking/server.
opentelemetryOpenTelemetry tracing/metrics SDK.
pdoPHP Data Objects core.
pdo_dblibPDO driver for FreeTDS/MSSQL/Sybase.
pdo_firebirdPDO driver for Firebird.
pdo_mysqlPDO driver for MySQL/MariaDB.
pdo_odbcPDO driver for ODBC.
pdo_pgsqlPDO driver for PostgreSQL.
pdo_sqlitePDO driver for SQLite.
pdo_sqlsrvPDO driver for SQL Server.
pecl-httpPHP extension for pecl-http support.
pgsqlPostgreSQL driver.
pharPHAR archive support.
pinbaPHP extension for pinba support.
posixPOSIX process and system functions.
proproPHP extension for propro support.
protobufProtocol Buffers support.
pspellSpell checking via Pspell/Aspell.
raphfPHP extension for raphf support.
rdkafkaApache Kafka client (librdkafka).
readlineInteractive readline support.
recodePHP extension for recode support.
redisRedis client extension.
shmopShared memory operations.
simplexmlSimpleXML parsing API.
snmpSNMP protocol support.
soapSOAP client/server support.
socketsLow-level socket API.
sodiumModern cryptography (libsodium).
sourceguardianPHP extension for sourceguardian support.
spplusPHP extension for spplus support.
sqlite3SQLite3 driver.
sqlsrvMicrosoft SQL Server driver.
ssh2SSH2 and SFTP support.
swooleAsync networking and coroutine server.
sybasePHP extension for sybase support.
sysvmsgSystem V message queue support.
sysvsemSystem V semaphore support.
sysvshmSystem V shared memory support.
tidewaysPHP extension for tideways support.
tideways_xhprofPHP extension for tideways_xhprof support.
tidyHTML/XML cleanup and repair.
tokenizerPHP tokenizer functions.
uuidUUID generation and handling.
uvlibuv event loop bindings.
wddxWDDX serialization support.
xcacheLegacy opcode/user cache.
xdebugDebugging and code coverage tools.
xhprofFunction-level profiler.
xmlCore XML parser support.
xmlreaderStreaming XML reader.
xmlrpcXML-RPC protocol support.
xmlwriterStreaming XML writer.
xslXSLT transformations.
yamlYAML parsing and emitting.
zbarcodePHP extension for zbarcode support.
zipZIP archive support.
Some built-in modules are always on:
  • date
  • filter
  • hash
  • json (from 8.0)
  • libxml
  • openssl
  • pcntl
  • pcre
  • Reflection
  • session
  • SPL
  • standard
  • Zend OPcache (from 5.5)
  • zlib
To see a complete list of the compiled PHP extensions, run the following CLI command:
upsun ssh "php -m"

Custom PHP extensions

It’s possible to use an extension not listed here, but it takes slightly more work:
  1. Download the .so file for the extension as part of your build hook using curl or similar. It can also be added to your Git repository if the file isn’t publicly downloadable, but committing large binary blobs to Git is generally not recommended.
  2. Load the extension using an absolute path by customizing the PHP settings For example, if the extension is named spiffy.so and is in your app root, your configuration looks like the following:
Last modified on June 8, 2026