This document contains information how you can setup your PhpStorm for this application "correct" way.
For recommend plugins see External links / resources section of this documentation.
Setup ᐞ
CLI Interpreter ᐞ
First thing that you need to do is select correct CLI interpreter for your
PhpStorm. Selection should be available on Settings -> Languages & Frameworks -> PHP
section.
Just choose the Docker-PHP
from dropdown, if that does not exist there you
need to click that ...
and follow the instructions found in External links / resources
section - Configuring Remote PHP Interpreters.
Server ᐞ
Next thing to configure is used PHP servers. This you can do in
Settings -> Languages & Frameworks -> PHP -> Servers
- purpose of this is to
configure your PhpStorm to know how your local files are mapped inside that
docker container.
Test Frameworks ᐞ
Application itself contains quite lot of tests as you know from that testing
documentation. To get support to run tests directly from your IDE you need to
do following configuration in Settings -> Languages & Frameworks -> PHP -> Test Frameworks
.
By default settings should be set correctly but just ensure that those are set as in image below.
After this you need to add Run/Debug configuration for PHPUnit. In that prompt you should see the same as image below.
Note that if you see Fix
button on bottom right corner just click that to fix
all settings as those should be. Basically that will make PHPUnit to use all
those earlier configured settings.
Debugging ᐞ
Application supports using of XDebug for debugging tool, so just read Using Xdebug documentation and you're ready to start debugging your application.
External links / resources ᐞ
- Configuring Remote PHP Interpreters
- Test Frameworks
- Symfony Development using PhpStorm
- Symfony Plugin plugin for PhpStorm
- PHP Annotations plugin for PhpStorm
- Php Inspections (EA Extended) plugin for PhpStorm
- EditorConfig