Intellij Phpstorm



Skip to end of metadataGo to start of metadata

Learn or teach how to code with best-of-industry tools from JetBrains. Free Educational Licenses for JetBrains' tools. The following features are available for free with IntelliJ IDEA Community Edition. 20 006 642 downloads. Rust language support. 2 694 603 downloads. PhpStorm Web Help for offline use. 23 978 downloads. Top Rated for IntelliJ. IntelliJ IDEA vs PhpStorm vs WebStorm: What are the differences? The major difference between these three IDEs (Integrated Development Environments) is the language each supports. IntelliJ IDEA is a Java IDE. PhpStorm is a PHP IDE, and WebStorm is a JavaScript IDE.

Icon

This tutorial describes how to get started with development of PhpStorm plugins.

General information

Follow steps that are described at Getting Started with Plugin Development.

There are two ways to develop plugins for PhpStorm:

Make your FIAT® 500X even more eye-catching and upgrade to one of these Italian-inspired trims. The new Sport features a distinct, bold exterior design while the Trekking touts sleek, satin chrome exterior finishes and the Trekking Plus catches stares with matte black finishes. EXPLORE FIAT® 500X EXTERIOR ROOM FOR ANYTHING—ESPECIALLY FUN. The Fiat 500X comes with selectable driving modes that adjust the steering, transmission, throttle, and traction control systems’ responses. The driver can select Sport mode, Traction+ mode (useful. Fiat 500 crossover. In the Crossover category, Fiat offers the New Fiat 500L Cross, a crossover with a sporty look; the New 500X Cross Mirror, a new special version of the compact crossover, and the New Fiat 500L S-Design, an elegant car enriched with top-level features. SUVs and Crossovers, similar but different.

  1. Use Intellij IDEA Ultimate with the PHP plugin installed
  2. Use PhpStorm as a targeted IDE in a first place.

Phpstorm Vs Intellij Idea

The choice affects how you will configure SDK for the plugin. In the first case you need to specify current installation of Intellij IDEA as SDK and in the second case you need to specify current installation of PhpStorm. This step is described in the Getting Started with Plugin Development

How to use OpenAPI library

Icon

OpenAPI is available only for PhpStorm 6 and above.

This section explains how to configure Intellij IDEA for using PhpStorm OpenAPI.

Intellij Phpstorm Plugin

Adding library to a module

  1. Open Project Structure File | Project Structure
  2. Select Libraries
  3. Press Add button
  4. Find and select php-openapi.jar and php.jar. They are located in <your_installation_of_PhpStorm/plugins/php/lib.
  5. Agree to add the libraries to your Module
  6. Open Modules | Dependencies and change Scope to Provided. This step is necessary because otherwise ClassCastException will be thrown because two instances of the library will be loaded via different class loaders
Intellij

Adding dependencies to plugin.xml

  1. Open plugin.xml in the directory META-INF
  2. Add two <depends> items to plugin.xml:

Introduction

PhpStorm is an IntelliJ Platform-based product. Plugins for PhpStorm are developed in Java using the Ultimate edition of IntelliJ IDEA. The PsiViewer plugin is also recommended.

Intellij Phpstorm

Intellij Phpstorm Download

This page describes configuring plugin projects targeting PhpStorm. See also:

Configuring Plugin Projects Targeting PhpStorm

The IntelliJ IDEA Ultimate Edition (with the PHP plugin) must be used for developing PhpStorm plugins because the PHP plugin is incompatible with IntelliJ IDEA Community Edition. However, this IntelliJ IDEA Ultimate configuration runs the risk of accidentally using some APIs that are not available in PhpStorm. Pink noise generator download mac. The recommended best practice is to use PhpStorm for testing.

The OpenAPI is available for PhpStorm 6 and above.

Configuration of a Gradle-based PhpStorm plugin project is used as a tutorial in the section Configuring Plugin Projects using the IntelliJ IDEA Product Attribute. Many techniques are discussed, such as choosing a version of IntelliJ IDEA Ultimate given a targeted version of PhpStorm. The table below summarizes the gradle-intellij-plugin attributes to set in the build.gradle file for a PhpStorm plugin project:

The table below summarizes the gradle-intellij-plugin attributes to set in the plugin project's build.gradle file. Click on an entry in the table's Attribute column to go to the documentation about that attribute. To see how these attributes appear in the build.gradle file for PhpStorm, see Configuring build.gradle using the IntelliJ IDEA Product Attribute.

Intellij Phpstorm Download

gradle-intellij-plugin AttributeAttribute Value
intellij.typeIU for IntelliJ IDEA Ultimate. The required PHP plugin isn't compatible with IntelliJ IDEA Community Edition.
intellij.versionSet to the same IU BRANCH.BUILD as the PhpStorm target version, e.g. 193.5233.102.
intellij.pluginscom.jetbrains.php:193.5233.102 for the PHP plugin.
See below for PHP plugin version information.
runIde.ideDirectoryPath to locally installed target version of PhpStorm. For example, on macOS:
/Users/<user name>/Library/Application Support/JetBrains/Toolbox/apps/PhpStorm/ch-0/193.5233.101/PhpStorm.app/Contents.

Phpstorm Vs Intellij

The PHP plugin version is explicitly declared because it isn't bundled with IntelliJ IDEA Ultimate Edition. Select a version of the PHP plugin compatible with the intellij.version.

Intellij Phpstorm

The dependency on the PHP plugin APIs must be declared in the plugin.xml file, as shown in the tutorial Configuring plugin.xml section.