A Symfony2 plugin is available for PhpStorm that offers a lot of nice options like an advanced auto-completion in the settings files or in twig templates.
PhpStorm — PHP IDE that goes beyond the language
Here is how to enable it for your eZ Publish 5+ projects
First, open your eZ5+ project in phpStorm.
- Navigate to the settings window (File > Settings).
- In the left panel, pick the “Plugins menu” and click the “Browse repositories” button at the bottom of the main window.
- Search for “Symfony” in the repository plugins window. Find the “Symfony2 plugin”, right-click it and choose “Download and install”.
Click the close button. Back on the settings window, click the “OK” button. PhpStorm will ask you to restart itself to activate your newly installed plugin.
Once PhpStorm has restarted, you need to activate the plugin for your project. Because eZ Publish changes a few default paths compared to a vanilla Symfony 2 installation, we also need to customize some options. Open the settings menu back (File > Settings).
In the Project Settings section, click the Symfony2 Plugin menu on the left panel. On the right panel, make sure to activate “Enable Plugin for this Project”.
Next, modify the paths below to match e2 Publish structure. You should end-up with the following options set:
NB: If your project synchronizes its sources to a remote server, make sure to point your cache paths to your remote mount point or you will have to generate the cache manually to refresh the plugin parsing.
Click “OK” and enjoy the plugin goodies!