Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 2.19 KB

phpstorm.md

File metadata and controls

46 lines (34 loc) · 2.19 KB

IDE JetBrains PhpStorm

This document describing how you can configure your IDE PhpStorm.

Configuring PhpStorm

General

  • Go to Settings -> Plugins and install next plugins:
    • .env files support
    • .ignore
    • Makefile support
    • Laravel
    • Php Inspections ​(EA Extended)​
  • Go to Settings -> Languages & Frameworks -> Php -> Laravel and check Enable plugin for this project.
  • Go to Settings -> Languages & Frameworks -> Php -> Composer and set path to composer.json, check other settings:

Path mappings

CLI Interpreter

You need to set correct CLI interpreter for your PhpStorm. In order to do it please open Settings -> Languages & Frameworks -> PHP section and follow recommendations configuring remote PHP interpreters.

Path mappings

Server

In order to configure PHP servers please open Settings -> Languages & Frameworks -> PHP -> Servers. You need to configure how your local files will be mapped inside docker container:

Path mappings

Test Frameworks

If you want to run tests directly from your IDE you need to do following configuration in Settings -> Languages & Frameworks -> PHP -> Test Frameworks:

Path mappings

Next you need to add Run/Debug configuration for PHP Remote Debug. It need to be the same as image below:

Path mappings

Debugging

In order to use Xdebug as debugging tool please follow Using Xdebug documentation.

External documentations