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
{
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
"ghcr.io/shyim/devcontainers-features/php:latest": {
"version": "8.0"
}
}
}
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"
}
}
}
Following additional extensions are possible:
amqp
apcu
ast
dba
enchant
imagick
imap
ldap
memcache
mongodb
msgpack
odbc
pdo_dblib
pdo_firebird
pdo_odbc
pdo_sqlsrv
pspell
redis
shmop
sqlsrv
tidy
xdebug
yaml
memcached
ds
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
.