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:
extensions key
and turn off those on by default with the disabled_extensions key.
Some built-in modules are always on:
datefilterhashjson(from 8.0)libxmlopensslpcntlpcreReflectionsessionSPLstandardZend OPcache(from 5.5)zlib
Custom PHP extensions
It’s possible to use an extension not listed here, but it takes slightly more work:-
Download the
.sofile for the extension as part of your build hook usingcurlor 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. -
Load the extension using an absolute path by customizing the PHP settings
For example, if the extension is named
spiffy.soand is in your app root, your configuration looks like the following: