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 http://www.eclipse.org/downloads/. If you using a Mac, but don’t know if you need the 32-bit or 64-bit version, open up the Terminal.app and run the following command:
After running that command, you should see an output similar to the following:
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…