Guide to PHPStorm
July 1, 2020

Guide to PhpStorm

PHP Development

Long recognized as the leader in integrated development environment (IDE) for PHP, PHPStorm from JetBrains is a full-featured IDE that can both enhance the development environment as well as reduce the development life-cycle.

In this guide to PHPStorm, we look at some of the features that make PHPStorm popular, compare it against other PHP IDEs, discuss the considerations developers need to make when choosing a PHP IDE, then provide a list of helpful shortcuts you can use to better navigate PHPStorm — should you choose to use it.

Back to top

What Is PhpStorm?

PhpStorm is a commercial PHP IDE developed by JetBrains. Compatible with PHP, HTML, and JavaScript, PhpStorm provides real-time code completion, error prevention, and refactoring features.

As PHP developers are well aware, developing a PHP application usually deals with more than just PHP and this is one of the areas that PHPStorm shines with support for the entire web development stack including HTML and JavaScript in addition to PHP. 

As will be shown later, PHPStorm even provides support for working with databases directly from the IDE environment which, since database access is a primary focus of many PHP applications, can be a great time saver in the development process.

Is PhpStorm Free?

PHPStorm is not a free product. Based on the subscription model, pricing models are available at both the yearly and monthly level with reduced costs for subsequent years. Free offerings in the PHP IDE space include NetBeans, Eclipse, and Visual Studio code.

Back to top

How Does PhpStorm Compare to Other PHP IDEs?

PHPStorm certainly isn't the only IDE in the marketplace with other solutions including NetBeans, Eclipse, Visual Studio Code, and ZendStudio. But, as indicated earlier, PHPStorm is consistently ranked as the number one IDE for PHP development in many internet-based surveys.

All of the IDEs provide a similar set of base functionality including multi-language support and code completion. Where PHPStorm starts to outpace the competition is in areas such as Intelligent Code Completion, support for a variety of Frameworks, and expansive code inspection including support for SQL. 

The features outlined above aren't just for PHP. As an example, when working with SQL (a common task for a PHP developer), the PHPStorm features of inspection can be used as well as auto-completion of tables and fields which can help to ensure that the database structures are in sync with the code being developed. 

Back to top

Considerations When Choosing a PHP IDE

When choosing an IDE it's important to keep the following considerations in mind:

Features and Functions

While important, don't get overwhelmed with the massive list of features and functions that some IDEs provide; rather, determine those features that are important to your development effort and ensure that the selected IDE provides those.

Integration with Other Development Tools

a development environment in which all of the tools work cooperatively together can lead to significant performance improvements in the development effort.  You will want to ensure that the selected IDE works well with the application server, and source code control systems deployed in the environment – both of which PHPStorm has good integration capabilities for.

Currency with Language Versions

like any modern language PHP is constantly evolving with new features.  It's important that the IDE stay current as well to ensure that IDE functions such as code-completion support new/modified functions provided by the language.


While an important consideration cost should actually be the last consideration.  As an example, free offerings may not be providing the features that you need for your development effort. 

Back to top

Useful PhpStorm Shortcuts

To enhance a developers productivity in working with the features of PHPStorm itself there are a wealth of keyboard shortcuts including shortcuts related to editing, debugging, refactoring, navigation, and search tasks. We have put together a few tables for Windows shortcuts below. Click the links below to jump to the desired section.

General PHPStorm Shortcuts

These shortcuts are essential for basic PHPStorm use.

General PHPStorm Shortcuts for Windows


Windows Shortcut

Search everywhere

Double Shift

Find Action

Ctrl + Shift + A

Open corresponding tool window

Alt + #[0-9]

Toggle full screen mode

Ctrl + Alt + F11

Toggle maximizing editor

Ctrl + Shift + F12

Add to Favorites

Alt + Shift + F

Inspect current file with current profile

Alt + Shift + I

Open Settings dialog

Ctrl + Alt + S

Switch between tabs and tool window

Ctrl + Tab

PHPStorm Editing Shortcuts

If you're editing code with PHPStorm, these shortcuts are good ones to have close by.

PhpStorm Editing Shortcuts for Windows


Windows Shortcut

Basic code completion

Ctrl + Space

Show intention actions and quick-fixes

Alt + Enter

Parameter info (within method call arguments)

Ctrl + P

Quick documentation lookup

Ctrl + Q

Brief Info

Ctrl + mouse over code

Generate code... (Getters, Setters, Constructors)

Alt + Insert

Override methods

Ctrl + O

Implement methods

Ctrl + I

Surround with... (if..else, try..catch, for, etc.)

Ctrl + Alt + T

Comment/uncomment with line comment

Ctrl + /

Comment/uncomment with block comment

Ctrl + Shift + /

Select successively increasing code blocks

Ctrl + W

Decrease current selection to previous state

Ctrl + Shift + W

Reformat code

Ctrl + Alt + L

Auto-indent line(s)

Ctrl + Alt + I

Duplicate current line or selected block

Ctrl + D

Delete line at caret

Ctrl + Y

Smart line join (HTML and JavaScript only)

Ctrl + Shift + J

Smart line split (HTML and JavaScript only)

Ctrl + Enter

Start new line

Shift + Enter

Toggle case for word at caret or selected block

Ctrl + Shift + U

Select till code block end/start

Ctrl + Shift + ] / [

Delete to word end

Ctrl + Delete

Delete to word start

Ctrl + Backspace

Expand/collapse code block

Ctrl + NumPad+/-

Close active editor tab

Ctrl + F4

Paste from history


PHPStorm Debugging Shortcuts

Debugging a PHP application with PHPStorm? These shortcuts will come in handy.

PhpStorm Debugging Shortcuts for Windows


Windows Shortcut

Step over


Step into


Step out

Shift + F8

Evaluate expression

Alt + F8

Resume program


Toggle breakpoint

Ctrl + F8

View breakpoints


PHPStorm Refactoring Shortcuts

Refactoring code is hard enough. These refactoring shortcuts for PHPStorm can make it more surmountable.

PhpStorm Refactoring Shortcuts for Windows


Windows Shortcut



Safe Delete

Alt + Delete


Shift + F6

Inline Variable

Ctrl + Alt + N

Extract Method/Variable/Field/Constant

Ctrl + Alt + M/V/F/C

Refactor This (shows all available refactorings)

Ctrl + Alt + Shift + T

Quickly find relevant points in your code with these PHPStorm navigation shortcuts.

PhpStorm Navigation Shortcuts for Windows


Windows Shortcut

Go to class

Ctrl + N

Go to file

Ctrl + Shift + N

Go to symbol

Ctrl + Alt + Shift + N

Go to line

Ctrl + G

Go to next/previous editor tab

Alt + Right/Left

Go to editor (from tool window)


Recent files popup

Ctrl + E

Navigate back/forward

Ctrl + Alt + Left/Right

Navigate to last edit location

Ctrl + Shift + Backspace

Select current file or symbol in any view

Alt + F1

Go to declaration

Ctrl + B or Ctrl + Click

Go to implementation(s)

Ctrl + Alt + B

Open quick definition lookup

Ctrl + Shift + I

Go to type declaration

Ctrl + Alt + B

Go to super-method/super-class

Ctrl + U

Go to previous/next method

Alt + Up/Down

Move to code block end/start

Ctrl + ] / [

Next/previous highlighted error

F2 / Shift + F2

Edit source / View source

F4 / Ctrl + Enter

Looking for something in your code? These PHPStorm search shortcuts can help.

PhpStorm Search Shortcuts for Windows


Windows Shortcut


Ctrl + F/R

Find next/previous

F3/Shift + F3

Find/Replace in path

Ctrl + Shift + F/R

Find usages / Find usages in file

Alt + F7 / Ctrl + F7

Highlight usages in file

Ctrl + Shift + F7

Show usages

Ctrl + Alt + F7

Back to top

PHPStorm Integration With Zend Server

The PHPStorm ecosystem includes a number of extensions for adding additional capabilities to the IDE.  One of these extensions is to support Zend Debugger, a debugger that is included with Zend Server.  This allows the developer to integrate the debug capabilities of Zend Server with those of PHPStorm to enable capabilities such as launching debug sessions from the Zend Server environment (including code trace and ZRay).

Back to top

Final Thoughts

IDEs can be a significant time-saver for PHP/Web development efforts and PHPStorm is an offering in the IDE space that is well worth evaluation and consideration. 

Additional Resources

Looking for additional information on how to use PHPStorm with Zend Server? The resources below are worth a look.

Did You Know Zend Offers Secure and Supported PHP 5.6 and 7.1 Runtimes?

Learn more about how to keep your application safe and secure with Zend PHP runtimes.

See More Information

Back to top