Using Eclipse for PHP development with SVN

  1. Download Eclipse for PHP from here: http://www.eclipse.org/downloads/
  2. Unpack it for into your working folder.
  3. Launch it. For the first time it will ask a few questions about working folders, etc.
  4. Now you need to install Subclipse (SVN client integrated in Eclipse)
    • Help -> Install New Software -> Add -> Type “Subclipse” for name and “http://subclipse.tigris.org/update_1.6.x” for URL.
    • Select all the options of available plugins
    • Agree with all the questions it is going to ask you -)
  5. Create SVN repository. In Linux issue command svnadmin create /path/to/reppo
  6. Now need to link existing repository with Subclipse: In Eclipse switch to SVN pane, right click on white space under Repositories and select New -> Repository. As URL give it this: file:////C:path/to/svn_reppo/ Important to get correct number of forward slashes!!
  7. Create new PHP project and commit it to the repository: Right click on Project -> Team -> Share Project. Select SVN and choose the repository you have just created. This will commit first version of the project.
  8. To commit files/project do right click on the file/folder -> Team -> Commit -> add notes