- Open File | Project Structure.
- In Platform Settings | SDK, add an Intellij Platform Plugin SDK pointing to an installation of PhpStorm.
- In Project Settings | Libraries, add a Java library with two files from the installation of PhpStorm:
plugins/php/lib/php.jar
andplugins/php/lib/php-openapi.jar
. - In Project Settings | Modules, set the Module SDK to the SDK created in step 2.
- At the same place, add the library created in step 3 to the module if it's not there already. Then set its Scope to
Provided
and make sure theExport
checkbox is unchecked.
Now you should be able to create a Plugin
-type run configuration and run the plugin. To build a final jar
file, use Build | Prepare Plugin Module For Deployment.