Hudzilla.org - the homepage of Paul Hudson
Contents > Writing PHP > Which IDEs are good Wish List | Report Bug | About Me ]

19.2.7     Popular IDEs

This is NOT the latest copy of this book; click here for the latest version.

As with other languages, PHP has a number of IDEs to make your programming life as easy as possible. There isn't space here to print a definitive list of IDEs, but there are six IDEs that I've heard good things about. Alphabetially they are:

  • DzSoft PHP Editor

  • Maguma Workbench

  • NuSphere PhpEd

  • PHP Coder

  • PHP Expert Editor

  • Zend Studio

It's not really for me to pass judgement on any of them, particularly as some (like PHP Coder) are available free. Please don't bug me if your favourite PHP editor isn't in the list. Having said that, I will tell you these two things:

  1. I write most of my code using Kate, the free text editor bundled with KDE. This is not because it handles PHP well (I get syntax highlighting and nothing else!), but because it's fast, free, and does most of what I need.

  2. Whenever I want to debug a script, run profiling, or am working on a project of any complexity, I use Zend Studio. It's the only product I trust 100% to do what I need. No, Zend didn't pay me to say that!

Yes, I know the Zend Studio isn't free, but here you'll find that Firth's law of tailoring applies: "no matter how many alterations, cheap trousers never fit". In the IDE world, that translates to: "it's better to pay for something that suits you first time, than have to put up with various bugs/quirks/feature holes in something cheaper." This applies doubly if you make a living out of your PHP scripting.

I don't want to dwell on this too long, but, briefly, here's what makes me want to use Zend Studio:

  1. The debugging is first class. Pause your execution wherever you want, inspect and change variables, place watches and breakpoints, look into the output buffer, and step into and out of functions.

  2. Profile your scripts. Select any script, run it through Zend Studio, and it will report how long each part of your script took to execute - this is invaluable for performance tuning.

  3. Static code analysis. Zend Studio has a set of built-in rules that it can apply to your script to try to find possible errors. For example, if you create a variable that isn't used, Zend Studio will spot it.

  4. Code completion. The code completion in Zend Studio contains the parameter list as well as the function description. If it's a user function, you can add comments to your source code that Studio will pick up and use here.

  5. Browser integration. You can profile and debug your scripts entirely through your web browser - fill in a form, hit "Debug forms", then click Submit to jump straight into Zend Studio.

  6. More than just an editor. You get FTP support (including SFTP, for use through SSH), CVS support, project management, and other environment tools that smooth your workflow.

Right, that's enough of that - I suggest you give all of them a try and see what fits you most. Like I said, I've heard good things about the six I listed, and everyone has their own opinion.

At the time of writing, I believe you can get a free copy of Zend Studio for educational use - ie, inside a school. You can also get a heavily cut-down version of Zend Studio (called "Personal Edition") for your personal, non-commercial use. By "heavily cut-down" I mean there's no profiler, code analyzer, CVS, FTP, remote debugging, or other helpful features, so it really is quite simplified.

That said, there's an excellent, free debugger and profiler out there, called Xdebug. Download it from http://www.xdebug.org/ and try it out.





<< 19.2.6 Profiling   19.3 Laying out your files >>
Table of Contents
Want to see this stuff in print? PHP in a Nutshell takes the core topics covered here, adds in thousands of edits from the editorial team and myself, and combines them to make an unbeatable reference for PHP programmers at all levels.



My latest book has hundreds more tips on how to use PHP, Apache, and MySQL, plus Perl, Python, shell scripts, performance tuning, and more!



Top-right shadow
 
Bottom-left shadow Bottom shadow

Comments from other readers
A PHP User - 13 Oct 2008

Dont go anywhere near Zend studio 6 as it's the worst application I have ever used. Nothing works and I feel completely conned by Zend.

SVN wont work, debugging does not work well, the editor has loads of bugs.

I have just started using Komodo which seems a lot better. It may not have a few features but it actually works!

A PHP User - 13 Oct 2008

Why would ANYONE say Komodo is a big one? .. It lacks SSH support which is a major feature IMHO. And adding remote files to your project is a pain in the @$$, you can't add folders - only files. I feel it has more maturing it needs to do before I dish out $300 for it.

Another PHP User - 13 Oct 2008

The best free PHP IDE I've tried is PHPEclipse (www.phpeclipse.net), an add-in to the popular Eclipse IDE framework (www.eclipse.org). Definitely worth checking out for anyone (except if your PC is *really* low-end).

A PHP User - 13 Oct 2008

You missed a big one -- ActiveState Komodo. Komodo contains all the good aspects you list in an IDE and more. Plus it supports multiple scripting languages. Komodo is built on top of the Mozilla framework.

Tomislav Bilic - 13 Oct 2008

Does anyone use jEdit?



Add comment
Please note that by posting a comment here you are committing it to the public domain. This is important so that others can make use of your code themselves, and also so that I can incorporate helpful notes directly into the main text. Comments are limited to 2000 characters in length.

If you are reporting an error in the content, please tell me directly.

Your name/email address:
Your comment:
 
Now, in order to verify that you're a real person, please answer this simple question: what is four plus six?
The answer is:
(please write in
numbers, eg 19)


Top-right shadow
 
Bottom-left shadow Bottom shadow