Skip to content

Instantly share code, notes, and snippets.

@standoge
Created November 20, 2023 02:18
Show Gist options
  • Save standoge/cb9cbefb5a25c513c95b6f1f61b7aa79 to your computer and use it in GitHub Desktop.
Save standoge/cb9cbefb5a25c513c95b6f1f61b7aa79 to your computer and use it in GitHub Desktop.
A devcontainer file configuration file for PHP's Laravel framework. Works for PHP 7.##
{
// https://code.visualstudio.com/docs/remote/devcontainerjson-reference
"name": "PHP",
"image": "jrouaix/phpdevcontainer",
// "dockerFile": "Dockerfile",
// Comment out the next line to run as root instead. Linux users, update
// Dockerfile with your user's UID/GID if not 1000.
"runArgs": ["-u", "vscode"],
// Use 'settings' to set *default* container specific settings.json values on container create.
// You can edit these settings after create using File > Preferences > Settings > Remote.
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},
// Uncomment the next line if you want to publish any ports.
"appPort": [8000],
// Uncomment the next line to run commands after the container is created.
"postCreateCommand": "php -v",
"extensions": [
"felixfbecker.php-debug",
"felixfbecker.php-intellisense",
"mehedidracula.php-namespace-resolver",
"mehedidracula.php-constructor",
"ikappas.phpcs"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment