Vasteras - Sweden, Belgrade, Nis - Serbia

September 3, 2010

Troxo - Software Development Company

Eclipse plugins useful to PHP developers

March 27th, 2008

We in Troxo are switching to Eclipse for PHP development. It’s a great tool. The best thing about it is a long list of plugins available. Here is a checklist of things you have to have for PHP coding in Eclipse:

  • PDT (PHP Development Tools) – This is what actually enables you to use Eclipse for PHP development. It can be installed using Eclipse update site, but if you are doing PHP development only, then it is the best to download “all in one package” and not to bother with plugin dependencies. There is also PHPEclipse project, but unfortunately the latest release is from April, 2006 (for Eclipse 3.1).
  • JSEclipse – The most popular JavaScript editor for Eclipse. It makes your life as a JS coder much easier. If you want more powerful features, go on and search for Aptana IDE. Actually, Aptana IDE is also Eclipse based editor, so it should be easy to install PDT plugin and get full PHP support.
  • Subclipse – Powerful SVN client that integrates into Eclipse IDE. For the ones who have never used Eclipse, there is also a "local history" feature that enables you to restore your file as it was before you tried to implement your brilliant idea, which actually turned out not to be so brilliant :)
  • Mylin – Makes your Trac tasks part of Eclipse IDE, so there is no need to visit your Trac Tickets page in order to find out what you should work on. So, in combination with Subclipse it enables you to stay with your favorite IDE from nine to five :)
  • Eclipse Data Tools Platform – integrates database tools into your Eclipse environment. In order to use it, you will have to download the appropriate JDBC driver for your database (for MySQL you can find them here), setup database connection, and you are ready to view database schema and create and execute database queries.

Finally, XDebug - well this is not an Eclipse plugin, but it was worth mentioning it because it’s hard to make it work with Eclipse. Thanks to the great blog post Debugging PHP with PDT and XDebug it is now easy to have debugging environment for your PHP projects.