Logo Knowledge
  • Product Documentation
  • Insight
  • Developer Center
  • Training
  • Submit a Request
  • Product Documentation
  • Insight
  • Developer Center
  • Training
  • Submit a Request
  1. Acquia Support Knowledge Base
  2. How-To
  3. Tips & Tricks

Using PhpStorm with Drupal

    See more
    • Updated
    • November 21, 2019 10:50

    Issue

    As a Drupal developer, even though you can use a simple text editor to create and edit your website's PHP code, wouldn't you rather use an application that's custom designed for developers, which can do things like on-the-fly error checking and integration with version control systems?

    Resolution

    One tool that can do all of this is the PhpStorm integrated development environment (IDE) by JetBrains. Starting with PhpStorm 7, you can add a Drupal plugin to help you with your development needs.

    PhpStorm's Drupal plugin includes several abilities, including the following:

    • Provides Drupal hooks support (such as completion for hook declaration, navigation to hook invocations from the gutter, and quick documentation for hook declaration)
    • Integrates with Drush
    • Works with the drupal.org issue tracker for debugging and profiling

    Useful features

    If you decide to use PhpStorm for your PHP development, here are some useful features we've encountered during our own coding:

    • Do you need to inspect the method or function that you're calling? Simply press Ctrl+B. When you're done, press Alt+Shift+Left Arrow.
    • To quickly find any item (including files, classes, functions, and methods), press Shift twice to display Search Everywhere.
    • Assuming that you document your parameters and return values, PhpStorm provides warnings for several different types of issues, including missing methods, methods being called from the wrong scope, and the wrong variables being passed.
    • You can configure PhpStorm to enforce Drupal coding standards, and we encourage you to do so (Project Settings > Code Style).
    • If you are familiar with Vim, there is a plugin for Vim support.

    Additional resources 

    • PhpStorm’s Symfony2-specific features for Drupal 8
    • Drupal 8 support in PhpStorm 8 EAP
    • Drupal Development using PhpStorm tutorial
    • Drupal Development using PhpStorm blog post
    • Drupal support in PhpStorm 7 screencast

    Acquia Products

    • Acquia Cloud

    External Links

    • Drupal Development using PhpStorm tutorial
    • Drupal 8 support in PhpStorm 8 EAP
    • Drupal support in PhpStorm 7 screencast
    • Phpstorm's Symfony2 specific features
    Avatar
    Blake Scott
    • November 21, 2019 10:50
    • Updated
    • Facebook
    • Twitter
    • LinkedIn

    Was this article helpful?
    2 out of 3 found this helpful

    Return to top

    Related articles

    • Developing Drupal projects using PhpStorm
    • Upgrading from BLT 11 to BLT 12
    • Fast Track to Drupal 8 Coding
    • Fix for the warning about the Drupal 8.8.x deprecated temporary directory configuration
    • Is there a Drupal function to check if the user is logged in?

    Support

    Acquia Support Knowledge Base
    • Submit a Request
    • Contact Support
    • Acquia Support Guide
    • Product Documentation
    • System Status

    About Acquia

    • About Us
    • Leadership
    • Board of directors
    • Newsroom
    • Careers
    • Customers
    • Contact Us
    53 State Street, 10th Floor
    Boston, MA 02109
    United States
    Phone: 888-922-7842
    Map: Google Maps
    View other locations
    • Feeds
    • Legal
    • Security Issue?

    Copyright © 2018 Acquia Inc. All Rights Reserved. Drupal is a registered trademark of Dries Buytaert.