Note that we use the value to refer to the remote host. XDEBUG_CONFIG: remote_host=Īs you can see, we use the preconfigured Docker image comprising the Apache web server and PHP 7.4 with Xdebug. In our case, it will be a single webserver service: Next, we create a new file named docker-compose.yml , which will describe the configuration of the services comprising our app. To get started, we create a new project in PhpStorm. It provides a selection of preconfigured Docker images curated by the PhpStorm team, which cover the most common PHP development needs.īefore you proceed, make sure that you have Docker installed on your machine: see how to do it on Windows and on macOS. Probably the easiest way to integrate Docker with PhpStorm is to use the PhpStorm Docker registry. ![]() With Docker, you can start developing, running, and debugging your code in a matter of minutes! Your first step will be to set up a development environment: at the bare minimum, you’d want to run a web server and a PHP interpreter (preferably – with the debugging engine installed). So, you’ve decided to try something new today and started a project from scratch.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |