When many people first enter the web development scene with PHP, one of the first things they ask is “What’s a Good IDE to use?” If you go ask a bunch of C or Java developers, you’ll start a heated debate. Go ask some PHP developers and you’ll either get not much of response or you’ll get laughed at. It’s true — in PHP, most developers simply do not use an IDE. In many ways, this does make sense. PHP is an interpreted web language. There’s no need to click “build” to compile the project. It’s not even necessary to execute a ton of files at once to run. Simply open the file of interest in a web browser with an Apache server and it works. To retest after a change, refreshing the browser is all it takes.

So why would anyone want an IDE for PHP development? For very large projects with many sub-directories, it would help with efficient navigation. Time spent on clicking through several levels of directories is time lost on writing code. In addition, an Apache process running in the background might eat up too much memory for unnecessary features. An IDE can create a temporary PHP process when testing saving system resources at other times.

NetBeans

Screenshot of NetBeans 6.9

A screenshot of NetBeans 6.9 on Windows 7. The latest version (as of this post) is NetBeans 7.1. Provided by Wikipedia.

NetBeans, by Oracle (originally Sun Microsystems), is an IDE optimized for Java development. In fact, being the official Java IDE, it is likely the most popular IDE of that language. PHP was introduced just a few years ago with the release of NetBeans 6.5. It offers the usual features of an IDE including syntax highlighting, error highlighting, a debugger (xdebug) and code analysis. Its code analysis makes it easy to identify potential mistakes in the code by reporting issues such as unused local variables — issues typically reported by compilers of compiled languages.

For PHP support, download at minimum, the PHP bundle. For Java, C/C++, … support in addition to PHP, a complete bundle is available. Downloads are available here.

Eclipse

Screenshot of Eclipse

Eclipse 3.7 with Java. It should look similar with PHP. Provided by Wikipedia.

Eclipse is another IDE targeted at Java developers. Like NetBeans, it also has an option for PHP development. (Must be a lot of Java developers doing PHP…) Unlike NetBeans, PHP support in Eclipse is provided by a plugin. (Eclipse is a plugin-based platform) The features presented by the plugin are comparable to those provided by NetBeans though not quite as polished at first glance. I have not extensively tested this plugin so I cannot comment on how its features compare in quality to those of NetBeans. A basic test showed that its core functions work.

Zend provides an all-in-one Eclipse IDE + PHP plugin installer. For those who already have Eclipse, the plugin can be downloaded separately. Note that for the debugger (xdebug) to work, it must be downloaded separately.

Final Remarks

Despite the benefits and features of an integrated environment, I find that it’s simply easier to use a regular text editor combined with a running Apache process.  Perhaps you’ll feel differently. Give these a try and maybe you’ll end up using them. As for me, it’s back to Notepad++.

Tagged with →  
Share →

10 Responses to Finding the Best IDE for PHP

  1. PHP Developers says:

    For PHP in particular, PHPEdit is the best, and I tried and worked in some of them including, Dreamweaver, Elipse, Emacs, Notepad++, NetBeans, UltraEdit …

    Thanks & Regards…
    Daffodil Software Ltd.
    PHP Developers

    • North says:

      Yeah, there are a lot more PHP IDEs I haven’t mentioned. After using a good sampling of them, however, I still end up right back where I started with the good old text editor.

  2. Nicholas Curtis says:

    I have been developing with PHP for 7 years now. I went through the following editors, in the following order.

    1. Dreamweaver CS2
    2. BBedit
    3. Zend Studio
    4. Eclipse
    5. Coda
    6. Zend Studio For Eclipse
    7. BBedit
    8. Textmate
    9. Bbedit
    10. Sublime Text 2

    I believe all the programs listed above are excellent tools. Some free others are not. For PHP specifically, I found the smaller the imprint of the IDE the more PHP I would write, and the happier I would be with my editor. Therefore I would have to rate the following 3 programs in a class of their own, they are very easy to use, easy to learn, and if you look at a special angle the exactly match notepad++. Although, the 3 programs look and feel lightweight they have a tone of features under the hood.

    1. Sublime Text 2 (Windows, Linux, Mac)
    2. Textmate (Mac)
    3. BBedit (Mac)

    P.S. I have never cared for bundling my testing environment with my development environment. Therefor I have always kept apache (now lighttpd) separate, and managed it separately.

    • North says:

      That list looks quite interesting — I’ll have to take a look at some of those when I get the chance. I agree that it seems that the “lighter” the IDE is, the better suited it is for PHP. For me, it’s just the faster load time and the I-want-to-start-editing-NOW attitude I have with the code. Thanks for the suggestions.

  3. I vote for Codelobster PHP Edition
    It is free and very powerful PHP IDE

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>