Setting Up the Eclipse IDE With PHP

For Php developers, there are two options for setting up the Eclipse IDE. You can install the Php only version which is made specifically for those who use Php and only Php, or you can install the classic version and add Php into it. Systems Admins will want to install the classic version and add Php to it because of other tools that may be needed such as Ant. Ant is a Java program for building automated scripts for deployments, etc. There is another program which is based on Ant, but built with Php called Phing. If you use Phing, you do not need Ant. However, if you want to be able to launch Phing scripts from the Eclipse IDE, you can do it by using Ant to execute Phing which would execute Phing scripts in Eclipse’s built in console.Eclipse can be obtained from If you using a Mac, but don’t know if you need the 32-bit or 64-bit version, open up the and run the following command:

uname -a

After running that command, you should see an output similar to the following:

Darwin LB.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386

The very last “word” on the block above is i386. i386 means you have a 32-bit computer. This means you need the 32-bit version of Eclipse. If you see something different, such as x64 or x86-64 then that means you need the 64-bit version of Eclipse because your computer is running 64-bit software.

After you have downloaded and installed Eclipse (we are assuming you installed the classic version), you will then need to add Php tools to the IDE. You can do this like so:

  • Open Eclipse (start the program)
  • Click on Help > Install New Software
  • Where it says “Work with:”, select the dropdown menu (next to the “Add” button)
  • Select “All Available Sites”
  • Install the following modules and you should be set up:
    • Eclipse Platform
    • Eclipse RCP Target Components
    • Eclipse SDK
    • Under “Programming Languages,” select Php Development Tools and any other languages that you might need.
    • Under “Web, XML, Java EE…” select Php Development Tools…
Accept agreements as needed if you agree with them, and press next and let it work until it is finished. After it is finished, press the finished button and then restart the Eclipse IDE.

Comments are closed.

Post Navigation