Skip to content

Latest commit

 

History

History
82 lines (57 loc) · 3.36 KB

PHPSTORM.md

File metadata and controls

82 lines (57 loc) · 3.36 KB

What is this?

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.

Table of Contents

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.

Path mappings

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.

Path mappings

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.

Path mappings

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.

Path mappings

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


Back to resources index - Back to main README.md