Howto use Eclipse with PHP and SVN in Ubuntu 9.10
This little guide will show how to set up Eclipse for developing PHP sites using PHP Development Tools Project and Subversion.
Install Eclipse Galileo from repository:
sudo apt-get install eclipse
A number of dependencies are required inside Eclipse, which has to be added. Start Eclipse from the menu, and select Help > Install new software... The below list of update sites has to be added, which is done be typing the URL in "Work with", click Add and then type the name in the name field followed by Ok. Do this for the below update sites (name followed by URL):
EMF, http://download.eclipse.org/modeling/emf/updates/releases/
MyLyn, http://download.eclipse.org/tools/mylyn/update/e3.4/
GEF, http://download.eclipse.org/tools/gef/updates/releases/
DLTK, http://download.eclipse.org/releases/galileo/
Webtool, http://download.eclipse.org/webtools/updates/
PDT
Add http://download.eclipse.org/tools/pdt/updates/2.0/ with name PDT. Open "PDT SDK 2.1.2" and select "PHP Development Tools (PDT) Runtime Feature", click Next twice, accept the license and click Finish.
Subclipse
SVN integration (or one of them) in Eclipse is called Subclipse and is installed through update sites as well. Select Help > Install new software... and add http://subclipse.tigris.org/update_1.6.x into the "Work with" field and click Add type "Subclipse" in name and click Ok. Select all three options and click Next, Next, accept License and click Finish.
Checking out a project
Select File -> New -> Other in the new window select SVN -> Checkout Projects from SVN and click Next.
Select "Create a new repository location", click Next. Type SVN repository in URL, click Next. Type username and password if required. Select the part of the repository containing the project, click Finish.
If the repository not already holds project settings for Eclipse, select "Check out as a project configured using the New Project Wizard" and click Finish. In the New Project Wizard select PHP -> PHP Project and click Next. Give the project a name and you are ready to go - have fun! :)