

Now it is important that it includes everything you need for comfortable work with Magento 2. If you are interested, we can consider this assembly in detail in a separate article. Redis 6.0 (for cache and session storage)Įlasticsearch 7.3.1 (for full-text search) The environment build (docker-compose template) includes docker images with the following software: This separation of project and environment allows you to extend them independently and reuse the environment for other projects. gitignoreįile | Settings | Version Control | Directory Mappings The build folder is excluded from the parent repository in. The build folders and the parent folder are two separate git repositories. README.md – detailed description of the environment and its deployment Now let’s take a closer look at the directory structure on the top level there are three folders:īin – bash scripts for convenient work with the ecosystem of Docker containers, deploying and updating the environment.ĭocker – everything you need to locally build a project based on docker-compose.ĭocker-compose.yml – environment configuration and initialization file.ĭ – file for redefining environment configurations. You can find more information about Directories here. text files, as well as all php test files whose name ends with Test.phpĪnd it will also exclude all. This pattern will remove from the index all. We also mark the Sources and Resource Root directories.Īlso, use the “Exclude files” field to exclude files by regular expression.For instance Let’s exclude all auxiliary directories from the index to speed up our IDE. Generated – file:build/generated//Īfter we have created scopes, let’s highlight themįile | Settings | Appearance & Behavior | File ColorsĪs a result, this will easily help you navigate the code, immediately see your and third-party, generated files in the stack trace, and search for files.
Phpstorm debug magento 2 full#
You can see the full description hereįile | Settings | Appearance & Behavior | Scopesĭevelop – file:build/app/code/VendorName//Ĭommunity – file:build/app/code/CommunityVendorName// The scope is a set of files to which various operations and settings are applied, it is also possible to highlight these files using color in all PhpStorm windows. Now let’s set up the scopes of the IDE (scopes). To work with the PHP interpreter from a Docker container, you need to configure the CLI Interpreter and Path mapping. Set up the interpreter File | Settings | PHP Or connect to the container and manage the data from within. Now when we click on “Services”, we can work with Docker.įor example, we can look at the output of each container.
Phpstorm debug magento 2 install#
If you want to install Docker on a different operating system or you want to learn more about PhpStorm’s Docker featuresįor Linux, just select the Unix Socket in “Connect Docker daemon with” and click the “Apply” button. We will be looking at Docker configuration on Linux OS. Set up the ability to use Docker from the IDE.įile | Settings | Build, Execution, Deployment | Docker
Phpstorm debug magento 2 code#
Tabnine AI Code CompletionĪrtificial intelligence that learns auto-completion from your code and the code of your colleagues.

Rainbow BracketsĬolors brackets in different colors, which improves the readability of the code. Head to File | Settings | Editor | Inspectionsįor changing the code inspection settings.

Like most of us, I use the Jetbrains PHPStorm development environment and today I would like to learn how you can quickly and freely work with Magento 2 in this IDE. Let me introduce myself - my name is Anton Abramchenko and I’m a PHP developer with 10 years of experience, the last 4 of which I have devoted to working with Magento 2.
