Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a PHP project with IntelliJ Idea 9?

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?

like image 961
Ivan Avatar asked Sep 24 '10 03:09

Ivan


2 Answers

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.

like image 75
CrazyCoder Avatar answered Nov 01 '22 08:11

CrazyCoder


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!

like image 41
Rob Barreca Avatar answered Nov 01 '22 08:11

Rob Barreca