PHP Plugins (PSI)

Since PhpStorm 2 is out, I'd like to develop one or more plugins for it.
Is it possible? For now, I don't need anything but PSI.

5 comments
Comment actions Permalink

Hello Jonathan,

Yes, this is possible. We don't have a separate OpenAPI package or documentation
for the PHP PSI at the moment, but you should be able to figure most of the
structure out using the built-in PSI viewer.

Since PhpStorm 2 is out, I'd like to develop one or more plugins for
it. Is it possible? For now, I don't need anything but PSI.


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Glad to hear it :)
I have successfully started, at least developing an IDEA Community plugins. And I can run it in Comminuty. Would there be a way to run it (and debug it?) in PhpStorm instead?

0
Comment actions Permalink

Hello Jonathan,

You can create an IntelliJ IDEA SDK pointing to a PhpStorm installation,
which will allow you to run your plugin within PhpStorm.

Glad to hear it

I have successfully started, at least developing an IDEA Community
plugins. And I can run it in Comminuty. Would there be a way to run it
(and debug it?) in PhpStorm instead?


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Thanks, I'll try it.
Back to my original wonders... I got a PSI of PHP file, and while most things are not of interest in my case, and then most things of interest should be problematic, I have a little issue with some items, like com.jetbrains.php.lang.psi.elements.impl.PhpClassImpl, the class of node holding class information. Would it be possible to know at least it inheritance tree, or maybe even to get a javadoc of it? Else, I'll survive, my tool will rely on getClass().

0
Comment actions Permalink

...and add -Didea.platform.prefix=PhpStorm to the VM Parameters of your plugin run
configuration.


0

Please sign in to leave a comment.