title | redirect_from | |
---|---|---|
Setting-up the Environment for PhpStorm Plugin Development |
|
Please familiarize yourself with the Getting Started with Plugin Development section of this guide.
If you are using a DevKit workflow to develop plugins for PhpStorm, the recommended approach is to base the plugin project SDK on an installation of PhpStorm. An alternative approach is to base the plugin project SDK on an installation of IntelliJ IDEA Ultimate with the PHP plugin. However, this runs the risk of accidentally using some APIs which are not available in PhpStorm.
Note The OpenAPI is available for PhpStorm 6 and above.
The Plugin Dependencies page describes adding dependencies to the DevKit as well as Gradle development environments. Follow the instructions to:
-
Add the PHP OpenAPI classes to the classpath of your plugin:
- For Gradle-based plugin development, add the
com.jetbrains.php
plugin ID to your build.gradle file. - For DevKit-based plugin development, add the
php-openapi.jar
andphp.jar
libraries to the classpath of your project's SDK.
These libraries are located in<your_installation_of_PhpStorm>/plugins/php/lib
directory.
- For Gradle-based plugin development, add the
-
Add the
com.jetbrains.php
andcom.intellij.modules.platform
dependencies to the your plugin project'splugin.xml
file.