When we click on Enable, PhpStorm will ask us to browse to the location that the Joomla! codebase is installed, in my case, it was the root of the project I'm working on. It's also worth clicking on the second prompt that asks you if you want to detect the namespace roots; this saves us having to configure the paths for the project manually. If you don't get prompted by the Joomla! Support prompt, you can enable Joomla! support manually by opening the preference pane, and navigating to Languages & Frameworks then PHP and Joomla! Support.
Once we've enabled the Joomla! support, PhpStorm then asks if we would like to enable the Joomla! code styles and if we would like to enable the Joomla! docblock templates. Joomla! has its own rigorous code style and docblocks, so enabling these is always a good idea; we'll learn more about these later.
Creating a New Joomla Module/Plugin/ExtensionComponent/Empty Joomla! Project
To create a new Joomla project, go to File then New Project... and select Joomla! Integration from the left hand options. You'll need to tell PhpStorm where to find your Joomla! installation path (unless you've already specified it at the previous step), give your project a name and select what type of Joomla! project you're going to create. Here we're creating a new Joomla! module.
Image Removed Image Added
PhpStorm will then create the `joomla-module.php` file, and the `joomla-module.xml` file that you need to use this project as a Joomla! module. You'll need to edit the configuration XML file before you can use the module.