I can't find how to create PHP project with IntelliJ Idea 9. It only offers "Java module" and "Maven module" to choose when creating a project. PHP plugin is installed, but how to employ it?
UPDATE: Web module type is available since IntelliJ IDEA Ultimate 11. Use Web module type to create PHP projects in IDEA.
Old answer prior to IDEA 11:
It's a known limitation, IDEA doesn't support creating project without any module type like PhpStorm/WebStorm products since it supports many languages and technologies. But it also doesn't have a special module type for PHP or web projects yet.
At the moment you should use dummy Java module, you can omit creation of the src directory and all the other Java specific stuff, but you have to choose Java module type for your PHP/web projects.
This may change in the future IDEA versions as we plan to support opening PhpStorm/WebStorm projects in IDEA and vice versa.
There is also a request to support web modules in IntelliJ IDEA that you can watch for progress.
I'm on IDEA 11.0.2 and I still have to create a barebones Foo.java file in the non-Java module I want to create. So frustrating. Meaning that if I want to create a module for my JavaScript project or for my PHP project I need to put that file in there and do New module...from existing sources, then delete the Foo.java.
There's got to be a better way!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With