All Projects → INsReady → docker-vscode-php

INsReady / docker-vscode-php

Licence: GPL-3.0 License
Visual Studio Code in a container for PHP/Drupal development

Programming Languages

Dockerfile
14818 projects
shell
77523 projects

Projects that are alternatives of or similar to docker-vscode-php

Addon Vscode
Visual Studio Code - Home Assistant Community Add-ons
Stars: ✭ 201 (+356.82%)
Mutual labels:  ide, vscode
VSCode-Anywhere
VSCode with preconfigured tools for your programming languages : binaries, settings, extensions and documentations
Stars: ✭ 26 (-40.91%)
Mutual labels:  ide, vscode
Ionide Vscode Fsharp
VS Code plugin for F# development
Stars: ✭ 660 (+1400%)
Mutual labels:  ide, vscode
Code Server
VS Code in the browser
Stars: ✭ 50,541 (+114765.91%)
Mutual labels:  ide, vscode
Nvcode
An IDE layer for Neovim with sane defaults. Completely free and community driven.
Stars: ✭ 6,714 (+15159.09%)
Mutual labels:  ide, vscode
Micropy Cli
Micropython Project Management Tool with VSCode support, Linting, Intellisense, Dependency Management, and more!
Stars: ✭ 112 (+154.55%)
Mutual labels:  ide, vscode
Julia Vscode
Julia extension for Visual Studio Code
Stars: ✭ 823 (+1770.45%)
Mutual labels:  ide, vscode
Vscodium
binary releases of VS Code without MS branding/telemetry/licensing
Stars: ✭ 14,639 (+33170.45%)
Mutual labels:  ide, vscode
Vscode Nim
An extension for VS Code which provides support for the Nim language.
Stars: ✭ 204 (+363.64%)
Mutual labels:  ide, vscode
PyPadPlusPlus
Python IDE based on Notepad++ and PythonScript
Stars: ✭ 45 (+2.27%)
Mutual labels:  ide
vscode-auto-npx
Auto resolving local Node.js binaries in VS Code terminal.
Stars: ✭ 87 (+97.73%)
Mutual labels:  vscode
yii2-autocomplete-helper
Yii2 IDE Autocomplete Helper
Stars: ✭ 38 (-13.64%)
Mutual labels:  ide
vscode-azureappservice
Azure App Service extension for VS Code
Stars: ✭ 79 (+79.55%)
Mutual labels:  vscode
project-japanese-proofreading
テキストファイルやMarkdownファイルの日本語の文章をチェックするVS Codeの拡張機能
Stars: ✭ 81 (+84.09%)
Mutual labels:  vscode
semantic-release-vsce
semantic-release plugin to package and publish VS Code extensions
Stars: ✭ 24 (-45.45%)
Mutual labels:  vscode
vscode-appcelerator-titanium
Appcelerator development tools and UI package for Visual Studio Code.
Stars: ✭ 35 (-20.45%)
Mutual labels:  vscode
borogove-ide
Borogove online IDE for IF languages
Stars: ✭ 15 (-65.91%)
Mutual labels:  ide
CircuitPython-online-IDE
CircuitPython online IDE
Stars: ✭ 15 (-65.91%)
Mutual labels:  ide
awesome-devcontainers
A curated list of awesome tools and resources about dev containers for common programming languages and technology stacks to boost your developer productivity 🚀
Stars: ✭ 165 (+275%)
Mutual labels:  vscode
vscodium.github.io
a landing page for info about vscodium
Stars: ✭ 44 (+0%)
Mutual labels:  vscode

Visual Studio Code for PHP

This docker image packages Visual Studio Code (vscode) with a curated list of extensions for PHP development. The goal of this image is to offer an easier, faster and free IDE, comparing to PhpStorm.

With this image, you don't need to install an "IDE" anymore, you simply run a Docker command, which will launch the vscode, creates the PHP enviroment, and then remove itself when you are done working.

Demo GIF

How to use

Launch:

To launch the "IDE" and set the current folder as the root of your application:

$ docker run -ti --rm --privileged -v /tmp/.X11-unix:/tmp/.X11-unix -v "$PWD":/var/www/html -e DISPLAY=unix$DISPLAY --device /dev/dri --name vscode --net="host" insready/vscode-php

You can set up bash alias for the command above, for example:

nano ~/.bashrc

alias phpcode='docker run -ti --rm --privileged -v /tmp/.X11-unix:/tmp/.X11-unix -v "$PWD":/var/www/html -e DISPLAY=unix$DISPLAY --device /dev/dri --name vscode --net="host" insready/vscode-php'

source ~/.bashrc

Once you set up the alias above, you can simply launch your "IDE" with simple command phpcode.

Stop:

To stop the container and auto-remove it: Just use Ctrl+C

Use with other Docker image:

This image would work well with insready/drupal-dev, Xdebug remote debugging will simply work out of box.

Configure Xdebug to work

This image makes assumption that the default remote server file path is at /var/www/html/. If this indeed is your remote file path, for example, you use insready/drupal-dev for setting up your Drupal develppment enviroment, then you do not need additional configuration. Otherwise, you need to create a mapping between your remote file path, and the file path inside this container, which defaults to /var/www/html/.

To create a file path mapping between remote and local file system, you have to set the localSourceRoot and serverSourceRoot settings in your launch.json, for example:

"serverSourceRoot": "/var/www/html/",
"localSourceRoot": "${cwd}"

More documentation on this bit configuration can be fund here.

List of vscode extensions included

Known issues

  • When you close the vscode UI, the container doesn't stop automatically. Therefore, you need to use Ctrl+C to stop the container therefore to remove it.
  • This image has only been tested on Linux. The --net="host" might not work on Mac, therefore it needs one more step tweek to get Xdebug work out of box.

Contributing

You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.

Before you start to code, we recommend discussing your plans through a GitHub issue, especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].