Further reading: Getting Started with IntelliJ IDEA as an Eclipse User by Anton Arhipov
A lot of PhpStorm features are available without any configuration right after launch of the application, though in order to take advantage of running your PHP application, you need to configure PHP interpreter & server.
If you plan to launch the application locally, you need a PHP engine installed and registered in PhpStorm and a Web server installed, configured, and integrated with PhpStorm. You can install these components separately or use an AMP package. Read more about initial interpreter/server configuration.
If you are going to run and debug an application directly on a remote host, the only thing you need is register access to this host in PhpStorm to enable synchronization.
Please refer to QuickStart Guide for more information on getting started.
You should create a new project from existing sources. In most cases moving the project to PhpStorm is not a complex operation, you can create a new project from existing sources using the File | New Project action or from the Welcome screen. PhpStorm can use the same directory as your Eclipse project is using. PhpStorm then adds .iml file (idea module file) and .idea configuration directory.
Some of the most common steps required during import include: deployment to remote host, configuring and using debugger. These steps are described in the FAQ entries below.
See Project concept for details.
In Eclipse, a workspace is a logical area where developers manage a number of different projects. Each project, in turn, is made of source files, libraries, user libraries and dependencies on other projects.
To cover a similar use case PhpStorm allows you to work with multiple projects opened simultaneously.
More in general, in PhpStorm you can achieve the same results as in Eclipse in terms of the project configuration.
It's possible to work with multiple projects simultaneously using PhpStorm. To achieve this you only need to open a project, while another one is already opened, and choose Add to currently opened projects.
If you've checked out your project from the remote host, deployment server is already configured. Otherwise, you will need to get it configured (it can be FTP/SFTP/FTPS server or mounted/local folder) in Settings / Preferences | Deployment.
Remote host tool window is available on the right of the PhpStorm window which is handy to browse through remote server and perform various actions.
Make sure to check full tutorial on deployments in PhpStorm.
PhpStorm comes with support for both Xdebug and Zend Debugger for debugging and profiling. There is a zero-configuration debugging workflow available which means that the only things you need to do are:
The reason for your Run button to be disabled is that there is no Run/debug configuration defined.
Run button will be available as soon as you configure run/debug configuration using e.g. PHP Built-in web server or remote server.
Use the action Run | Edit Configurations or use the Run Configurations box in the IDE toolbar. Use the + sign to add a new configuration and choose how you want to run your application.
Most popular Version Control Systems are supported by PhpStorm, including Git, Subversion, Mercurial, Perforce, CVS, TFS, and more. VCS integration for the project can be configured in Settings/Preferences | Version Control.
Read more about Version Control Support in PhpStorm.
The options dialog is called Settings/Preferences dialog in PhpStorm, and is invoked by File | Settings / PhpStorm | Preferences command on the main menu. You can configure global PhpStorm settings here as well as many project-related settings. Note that you can use the search functionality to quickly find an option — this is very practical because there are many options to configure.
With PhpStorm you never need to worry about saving your files when you switch to another application, run your code, perform a VCS operation and so on. Files are saved automatically on every frame deactivation. In addition, as an additional safety measure, you can enable auto-save if the application is idle for a specified period of time. By opening the Settings/Preferences dialog box, you can change the auto-save period in the General tab. In case you need to roll back any unwanted changes, you can use Local History - built-in version control system.
In PhpStorm a number of customizable options can be set at the project level. The list includes Code Style Settings, Run Configurations and Inspection Profiles. By defining these settings at the project level, you instruct PhpStorm to store them in the project description file and keep them global and then available to all team members.
There are two approaches to import the Eclipse code styles in PhpStorm.
Because at the end of the day both IDE save current settings to a local XML file, a smart tool can read one file and convert it to another schema automatically to the extent that it is possible. This is precisely what the aforementioned plug-in does: it reads the settings of a given Eclipse project and imports those settings into the PhpStorm local file storing settings.
While working on a document, we can quickly open it in a browser to see the result of our carefully crafted HTML. All we have to do is pick our browser of choice after hovering over our document (or press Alt+F2 and pick from the list).
PhpStorm has its own keyboard shortcuts but also allows you to choose from a variety of alternate keymaps from a few popular IDE's including Eclipse, Visual Studio, and EMACS. A keymap is simply a list of bindings established between a keyboard shortcut and a command available from the IDE. For this reason, two keymaps may be fully comparable only if both IDEs expose the same set of commands.
To activate Eclipse keymap, go to File/PhpStorm | Settings / Preferences, then IDE Settings | Keymap and choose Eclipse or Eclipse (Mac OS X).
You can always re-configure hotkeys or create your own custom keymap. Please refer to the section Configuring Keyboard Shortcuts for details.
We would recommend you to begin getting acquainted with PhpStorm keymap printing the default keymap reference.
Yes. You can enable this features by selecting the check box Highlight usages of element at caret in Settings/Preferences | Editor.
Refer to the section Highlighting Usages for details.
Yes. In Eclipse, the editor virtual space is disabled by default; in PhpStorm, instead, the setting is enabled by default. To change the setting, go to Settings/Preferences dialog box and select the Editor node. In the right pane, you just uncheck the Allow placement of caret after end of line option.
Yes. Code templates are predefined code snippets invoked by typing an associated abbreviation.
In PhpStorm, you configure code templates through the Settings/Preferences dialog. Select Live Templates from the IDE Settings block. Using the controls on the right you can add and remove code templates.
The most notable difference between code templates in Eclipse and PhpStorm is in the bag of predefined templates you find out of the box in PhpStorm.
Learn more about PhpStorm plugins here.
You can install plugins right from the IDE using the Settings / Preferences dialog. In the IDE Settings section, open the Plugins page that shows plugin that are currently installed. Click the button Browse repositories... to see which plugins are available in the online repositories. Click the button Install JetBrains plugin... to use plugins from the JetBrains repository.
Please refer to the section Managing Plugins for details.
Internally JetBrains uses IntelliJ IDEA platform for its products — for example, PhpStorm, WebStorm, RubyMine, PyCharm, AppCode, CLion, and MPS are built using the same sources as IntelliJ IDEA. It's possible to use the IntelliJ IDEA platform to build your own applications.