Intellij idea is a very powerful compiler that can support Java HTML css and so on. Of course, adding PHP language is a piece of cake ~
Environment:
Windows 7, Intellij idea 2016.2.5, php5-7, Apache 2.4
Steps:
1, the configuration of the PHP development environment, including the PHP language and Apache server, reference link (Bo owner followed, no problem):
Http://www.cnblogs.com/wangqishu/p/5028031.html
2, the PHP suffix files copied to IntelliJ idea, the compiler will automatically detect PHP, and prompted to download the PHP plugin (follow the prompts to download it). Alternatively, you can go to File->settings...->plugins->install jetbrains plugin., Search for PHP plugins from, and install
3, such as PHP plug-in installed, restart IntelliJ idea, find PHP files, and open HTML files can be opened directly in the browser.
Precautions:
Open the php file directly in IntelliJ idea, by default with the compiler's own server (using the port number 63342), when receiving a POST request, the data is not available.
To replace the project's server with an Apache local server, refer to the tutorial:
http://blog.csdn.NET/whd526/article/details/53263181
Intellij idea Configuring the PHP development environment