How to create a PHP project using IntelliJ Idea 9?

I can’t find how to create a PHP project using IntelliJ Idea 9. It only offers a “Java module” and a “Maven module” to choose when creating the project. PHP plugin installed, but how to use it?

+6
php intellij-idea
source share
2 answers

UPDATE The web module type is available since IntelliJ IDEA Ultimate 11. Use the web module type to create PHP projects in IDEA.


Old answer before IDEA 11:

This is a known limitation; IDEA does not support creating a project without any type of module, such as PhpStorm / WebStorm, because it supports many languages ​​and technologies. But it also does not have a special module type for PHP or web projects.

For now, you should use a dummy Java module, you can omit the creation of the src directory and all other Java-specific elements, but you need to choose the type of Java module for your PHP / web projects.

This may change in future versions of IDEA, as we plan to support the opening of PhpStorm / WebStorm projects in IDEA and vice versa .

There is also a request for support for web modules in IntelliJ IDEA , which you can monitor progress.

+18
source share

I am on IDEA 11.0.2 and I still need to create the barebones Foo.java file in the non-Java module that I want to create. So disappointing. This means that if I want to create a module for my JavaScript project or for my PHP project, I need to place this file there and make a new module ... from existing sources, and then delete Foo.java.

There has to be a better way!

+3
source share

All Articles