Installs PHP in Debian/Ubuntu based dev containers
"features": {
"ghcr.io/shyim/devcontainers-features/php:0": {}
}| Options Id | Description | Type | Default Value |
|---|---|---|---|
| version | Select or enter a PHP version | string | 8.2 |
| installComposer | Install PHP Composer? | boolean | true |
| extensionsExtra | - | string | - |
| disableAllExtensions | - | boolean | false |
By default this feature installs also Compoer. You can disable this by setting installComposer to false.
If you want to install different PHP versions, you can use the following
If you want to enable additional php extensions, you can use the following:
{
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
"ghcr.io/shyim/devcontainers-features/php:latest": {
"version": "8.0",
"extensionsExtra": "xdebug,redis,mbstring"
}
}
}Following additional extensions are possible:
amqpapcuastdbaenchantimagickimapldapmemcachemongodbmsgpackodbcpdo_dblibpdo_firebirdpdo_odbcpdo_sqlsrvpspellredisshmopsqlsrvtidyxdebugyamlmemcachedds
You can also use disableAllExtensions to disable all extensions and enable only the ones you want.
Note: This file was auto-generated from the devcontainer-feature.json. Add additional notes to a NOTES.md.
{ "image": "mcr.microsoft.com/devcontainers/base:ubuntu", "features": { "ghcr.io/shyim/devcontainers-features/php:latest": { "version": "8.0" } } }