PhpStorm tips and tricks

Pimple File Dumper - Helper Provider for Silex Idea Plugin

PhpStorm: Settings » Plugins » Browse repositories... » Silex/Pimple plugin
Composer: https://packagist.org/packages/sorien/silex-pimple-dumper
Composer: https://packagist.org/packages/jbzoo/pimpledumper

Docker Remote Interpreters

JetBrains Blog: Docker Remote Interpreters
PhpStorm: Settings » Languages & Frameworks » PHP

  • CLI Interpreter » [...]
    • CLI Interpreters » [+] → Remote...
    • Configure PHP Remote Interpreter → Docker → [New...]
      • Docker2 » API URL: unix:///var/run/docker.sock
    • Image name: gander/dev:7.1
    • PHP excecutable: php
  • Path mappings: PhpStormProjects/project.dev : /www/project.dev
  • Docker container » [...]
    • Network mode: lamp_default (default: bridge)
    • Links: lamp_pgsql_1 : pgsql
    • Volume bindings: /www/project.dev : PhpStormProjects/project.dev

Info:

Favourite settings

  • File | Settings | Editor | General | Code Folding
    • General
      • File header
    • PHP
      • Imports
    • XML
      • HTML 'style' attribute
  • File | Settings | Version Control | Confirmation
    • Restore workspace on branch switching

File Types

PhpStorm: Settings » Editor » File Types:

Recognized File Types Registered patterns
Docker Dockerfile.*
JSON *.json.dist
composer.lock
composer.lock.dist
YAML *.yml.dist
*.yaml.dist
Ignore .git-ftp-ignore
.git-ftp-include
/**\n * @var $2\n*/\npublic \$$1;

PhpStorm Dictionary

Favourite plugins

  • PHP Toolbox
  • PHP Annotations
  • Symfony Plugin
  • Silex/Pimple Plugin
  • PHP composer.json support
  • .ignore
  • BashSupport
  • String Manipulation