Eclipse For Php Developers

Eclipse JavaScript Development Tools (JSDT) is now optional. Eclipse PHP is built with WildWebDeveloper #561624 WTP JSON Editor replaced by Generic Text Editor #54. Programming with PHP in Eclipse. PHP is an open source general-purpose scripting language that is great for web development and can be embedded into HTML. PHP is mainly used in three areas: server-side scripting, command line scripting, and desktop applications. If you would like to include PHP in Eclipse, CodeMix provides all the tooling you need, from coding support to debugging.

PHP Tutorial: How to setup up and run free professional PHP Editor eclipse for PHP development. (Using PDT Plugin to turn eclipse into a PHP IDE) The same st. A team project set is a lightweight description of a set of source code repositories. It can be used to reconstruct a specific configuration of repositories in your Eclipse workspace.

Article Index
Developing with PHP and Eclipse (Helios)
Importing the site
Running and debugging

With the release of a new version of Eclipse it’s a good time to start using the Eclipse for PHP Developers edition.

This article refers to the 2010 release of Eclipse.

For the more recent version see:

If you have to work with the previous version - Galileo - then an older version of this article is still available at:
Developing with PHP and Eclipse (Galileo)

Getting started

I know many of us have struggled with coding PHP the hard way using nothing more than an editor and a development installation of the web site - or even worse, the live production site.

Part of the reason is probably that the task of setting up a full development environment, complete with debugger, for PHP seems to be difficult and all the more so if you have an existing and complex PHP website that you would like to take control of.

In my case the website is a PHP Joomla-based site and this provides me with a lot of code that I have never looked at and little really good documentation to tell me how things work. I've tried working with it with and without Eclipse PHP and all I can say is that the effort in setting Eclipse up was well worth it in terms both of efficiency and in having confidence.

You could say that without Eclipse I was flying blind. With it - I can tackle anything.

So if you have a PHP website or are about to start one - don't hesitate to download the latest Eclipse PHP and do it the logical way.

Eclipse

If you are a beginner to PHP more help can be found in Beginning PHP with Eclipse.

Configuration

Eclipse doesn't have an installation program - it is as close to copy-and-run as it gets.

You simply download the program, decompress it to a suitable folder and run the main program. You can install multiple copies of Eclipse and run them without worrying about the interactions with the operating system.

You can also use Eclipse PHP in a remote debugging configuration. That is, you can set up a web server with the website installed and then work with the website from a copy of Eclipse installed on another machine. The range of possible configurations of machines, operating systems and web servers is too big to cover them all so I'm going to focus on using a remote server running Linux/Apache/PHP/MySQL and a development system installed on a local client running Windows.

Other configurations follow the same general steps. In my case the remote server is also a virtual machine and the website is Joomla-based (as you can probably guess, it’s the iProgrammer website itself).

I am assuming that the development web server is set up and working and you can browse it as if it was the production website - if any reader thinks that a tutorial on the methods of creating a development site and synchronisation with a production site would make a good topic just email me - [email protected]

If the development website isn't working then don't move on to trying to use Eclipse just yet.

Get Eclipse

Eclipse is a modular system and while it doesn't need anything by way of installation it certainly does need work when it comes to configuration.

You can spend a lot of time downloading and configuring modules and tracking down missing dependencies. The simplest solution, and the best way to get started, is to download an all-in-one compressed package that is guaranteed to have all the modules. The place to start from is the main Eclipse site:

and you will find all of the downloads at

The one you need for PHP development is, unsurprisingly Eclipse for PHP Developers. It is also often referred to as PHP Development Tools (PDT), but this strictly speaking comprises the modules needed to customise Eclipse to work with PHP.

Once you have the file eclipse-php-helios-win32.zip unzip it into a suitable directory. It doesn't really matter where but Program FilesEclipse is a reasonable choice under Windows.

To make running the application easier drag the file eclipse.exe to the toolbar or start menu. You don't have to because you can simply run the file in place but it makes things easier to have a shortcut.

<ASIN:[email protected]>

<ASIN:0596100655>

<ASIN:0596007108>

<ASIN:0975240218>

<ASIN:1930110960>
<ASIN:[email protected]>

Yeh un dinon ki baat hai. Yeh un dinon ki baat hai chronicles the adolescent romance between Naina and Sameer. The show explores the magic of first love. Naina a quintessential good girl meets flamboyant Sameer in her school in Ahmedabad. She starts liking him the moment she meets him.



  • Navigation
  • Main Page
  • Community portal
  • Current events
  • Recent changes
  • Random page
  • Help
  • Toolbox
  • Page information
  • Permanent link
  • Printable version
  • Special pages
  • Related changes
  • What links here

Installing PDT is relatively easy.

  • 2Latest stable release
  • 14Eclipse 3.7 / Indigo / PDT 3.0
    • 14.1From Update Site
  • 15Eclipse 3.6 / Helios / PDT 2.2
    • 15.1From Update Site
  • 16Eclipse 3.5 / Galileo / PDT 2.1
  • 17Eclipse 3.4 / Ganymede / PDT 2.0
  • 21Debugger

Install a JVM

Regardless of your operating system, you will need to install a Java virtual machine.

  • If using Windows, you may already have one installed, but upgrading won't hurt.
  • If using Linux, read this -- GCJ will NOT work.

Consider an IBM JDK or a Sun JDK. See below for minimum requirements. Note that if you are on a 64-bit platform and are using a 64-bit JRE, you need to use a 64-bit Eclipse build.

Latest stable release

Marketplace

Install PHP Development Tools from Marketplace

Update Site

Latest stable release is always available under following Eclipse update site:

Please use use this article howto add update site to your Eclipse installation.

Eclipse 4.7.2 / Oxygen.2 / PDT 5.2.0

  • Download PHP EPP package from Eclipse Downloads page
  • or install PHP Development Tools via Help > Install new software
  • or via update site http://download.eclipse.org/tools/pdt/updates/5.2/

Eclipse 4.7.0 / Oxygen.0 / PDT 5.0.0

  • Download PHP EPP package from Eclipse Downloads page
  • or via update site http://download.eclipse.org/tools/pdt/updates/5.0/

Eclipse 4.6.3 / Neon.3 / PDT 4.3.0

  • Download PHP EPP package from Eclipse Downloads page
  • or install PHP Development Tools via Help > Install new software
  • or via update site http://download.eclipse.org/tools/pdt/updates/4.3/

Eclipse 4.6.1 / Neon.1 / PDT 4.1.0

  • Download PHP EPP package from Eclipse Downloads page
  • or install PHP Development Tools via Help > Install new software
  • or via update site http://download.eclipse.org/tools/pdt/updates/4.1/

Eclipse 4.6.0 / Neon.0 / PDT 4.0.1

  • Install PHP Development Tools from Marketplace
  • or via update site http://download.eclipse.org/tools/pdt/updates/4.0.1/

Eclipse 4.6.0 / Neon.0 / PDT 4.0.0

  • Download PHP EPP package from Eclipse Downloads page
  • or install PHP Development Tools via Help > Install new software
  • or via update site http://download.eclipse.org/tools/pdt/updates/4.0/

Eclipse 4.5.2 / Mars.2 / PDT 3.7.0

  • Download PHP EPP package from Eclipse Downloads page
  • or install PHP Development Tools via Help > Install new software
  • or via update site http://download.eclipse.org/tools/pdt/updates/3.7/

Eclipse 4.5.1 / Mars.1 / PDT 3.6.0

  • Download PHP EPP package from Eclipse Downloads page
  • or install PHP Development Tools via Help > Install new software
  • or via update site http://download.eclipse.org/tools/pdt/updates/3.6/

Eclipse 4.5 / Mars / PDT 3.5.0

  • Download PHP EPP package from Eclipse Downloads page
  • or install PHP Development Tools via Help > Install new software
  • or via update site http://download.eclipse.org/tools/pdt/updates/3.5/

Eclipse 4.4 / Luna / PDT 3.4.0

  • Download PHP EPP package from Eclipse Downloads page
  • or install PHP Development Tools via Help > Install new software

Eclipse 4.2 / Juno / PDT 3.1.1

Eclipse 3.7 / Indigo / PDT 3.0

From Update Site

Prerequisites

  • Installed and running Eclipse Classic 3.7

The minimum package is Eclipse Platform Runtime Binary. It is available at here
Any packages in Eclipse Downloads page are available also.

Installation Flow

  • Open Help -> Install New Software.
  • Select the Indigo update site.
  • When the list of existing features is populated - select 'PHP Development Tools'.
  • Make sure 'Contact all update sites..' is checked.
  • Proceed with the installation by pressing 'Next', then press 'Next' again in the next screen.
  • Accept the EULA when asked:
  • Finish the installation. Restart Eclipse.
  • After restarting switch to the PHP perspective, and you are done:

Additional Installation

If you need Mylyn features,

  • Help -> Install New Software
  • Select Indigo
  • Expand 'Collaboration'
  • Check following features (some other features will be installed automatically because of dependencies)
    • Mylyn Context Connector: Eclipse IDE
    • Mylyn Tasks Connector: Bugzilla
    • Mylyn WikiText
  • Proceed installation

If you need RSE(Remote System Explorer) features,

  • Help -> Install New Software
  • Select Indigo
  • Expand 'Mobile and Device Development'
  • Check following feature (some other features will be installed automatically because of dependencies)
    • Remote System Explorer End-User Runtime
  • Proceed installation
Developers

If you need Eclipse Marketplace feature,

  • Help -> Install New Software
  • Select Indigo
  • Expand 'General Purpose Tools'
  • Check following feature (some other features will be installed automatically because of dependencies)
    • Marketplace Client
  • Proceed installation

If You Are

  • Using Windows Vista/7
    • Do not pair 32bit Eclipse and 64bit JRE/JDK or vice versa. Use 32bit Eclipse on 32bit JRE/JDK, or 64bit Eclipse on 64bit JRE/JDK.
    • Do not install Eclipse under 'Program Files' or 'Program Files(x86)' folder.
  • Using Linux distro
    • Make sure SWT requirements if you have troubles with Content Assist or Internal Web Browser.
      • CSS styles appear in Content Assist Information.
      • Internal Web Browser is unavailable (cannot be opened or such).


Eclipse 3.6 / Helios / PDT 2.2

Note: PDT 2.2 is scheduled for release in June 2010. This will install a recent development snapshot, not the final 2.2.0 release.

From Update Site

Prerequisites

Eclipse For Php Developers
  • Installed and running Eclipse Classic 3.6

Installation Flow

  • Open Help->Install New Software.
  • Add the Helios update site: http://download.eclipse.org/releases/helios/
    NB! There are some ugly bugs in PDT 2.2 in particular when comparing files so you might consider adding http://download.eclipse.org/tools/pdt/updates/2.2/milestones as the update site instead of the Helios one.

  • Select the Helios update site and choose Eclipse PDT . When the list of existing features is populated - select 'Runtime' feature:
  • Proceed with the installation by pressing 'Next', then press 'Next' again in the next screen.
  • Accept the EULA when asked:
  • Finish the installation. Restart Eclipse.
  • After restarting switch to the PHP perspective, and you are done:

From Zips

  • Install a JDK or JRE -- the minimum required version is 5.0.
  • Download the latest PDT 2.2 Runtime + all its listed build dependencies, including Eclipse.
  • Unpack Eclipse, then unpack everything else into your eclipse/dropins/ folder.
  • Download H2 Database plug-in, then put it into your eclipse/dropins/ folder.
  • Run the Eclipse executable file.

Eclipse 3.5 / Galileo / PDT 2.1

From All-In-One Package

  • Install a JDK or JRE -- the minimum required version is 5.0.
  • Go to the Eclipse downloads page and select the Eclipse for PHP Developers bundle for your OS.
  • If your OS is not available, download the Eclipse 'Classic' SDK or Platform Runtime Binary, version 3.5 or later. Then see the section on installing from Update Site below.
  • Unpack the archive file you've downloaded into the directory in which you want to install PDT.
  • Run the Eclipse executable file. Start having fun in PHP world.

From Update Site (or Update Site Zip)

  • Install a JDK or JRE -- the minimum required version is 5.0.
  • Get Eclipse:
  • Download the latest Galileo JEE Bundle (or 'Classic' SDK or Platform Runtime Binary, or any other bundle that suits your needs), then unpack it and start it up.
  • Start the Install Manager.
  • If you downloaded a PDT Update zip:
  • You can also install PDT from the Galileo Update site:
  • Install. Restart Eclipse. Enjoy.

Eclipse 3.4 / Ganymede / PDT 2.0

From All-In-One Package

  • Install a JDK or JRE -- the minimum required version is 5.0.
  • Go to the PDT download page
  • Download the latest All-In-One package that is compatible with your OS.
  • This archive file includes the Eclipse environment, PDT and all the required dependencies you need to start developing using PDT.
  • Unpack the archive file you've downloaded into the directory in which you want to install PDT.
  • Run the Eclipse executable file. Start having fun in PHP world.

From Update Site

  • Install a JDK or JRE -- the minimum required version is 5.0.
  • Get Eclipse:
  • Download the latest Ganymede JEE Bundle, then unpack it and start it up.
  • Start the Install Manager. You will require three update sites to perform an install of PDT 2.0.
  • Install. Restart Eclipse. Enjoy.

From Zips

  • Install a JDK or JRE -- the minimum required version is 5.0.
  • Download the latest PDT 2.0 build + all its listed dependencies, including Eclipse.
  • Unpack Eclipse, then unpack everything else into your eclipse/dropins/ folder.
  • Run the Eclipse executable file.

Helpful Links

Eclipse 3.4 / Ganymede / PDT 1.0.5+

NOTE: PDT 1.0.5+ requires Eclipse 3.4. For PDT with Eclipse 3.3, use PDT 1.0.3.
  • Install a JDK or JRE -- minimum required level is 5.0.
  • Get Eclipse:
  • Download the latest Ganymede JEE Bundle, then unpack it and start it up.
  • Start the Install Manager. You will require two update sites to perform an install of PDT 1.0.5+.
  • Install. Restart. Enjoy.
Eclipse

Eclipse 3.3 / Europa / PDT 1.0.3

  • Install a JDK or JRE -- minimum required level is 5.0.
  • Get Eclipse:
  • If one exists for your platform (operating system, windowing system, architecture), the simplest way to install PDT is via an All-In-One bundle.
  • If installing on Linux, you can look for a package from your distro maintainter/repositories, but this is not supported by eclipse.org. If you encounter problems with such a bundle, please contact your distro maintainer.
  • Otherwise, download an Eclipse SDK or Runtime Binary or the Europa JEE Bundle, then unpack it.

How To Use Eclipse Php

  • Start up Eclipse.
  • Start Update Manager.

Download Eclipse For Php Developers

  • Expand the Europa Discovery site to resolve dependencies. Collapsed sites will not be searched.
  • Select the PDT feature(s) you want to install.
  • Click the Select Required button to resolve missing dependencies.
  • Install*. Restart. Enjoy.

Eclipse 3.2 / Callisto / PDT 0.7

  • Install a JDK or JRE -- minimum required level is 1.4.2.
  • Get Eclipse:
  • If installing on Linux, you can look for a package from your distro maintainter/repositories, but this is not supported by eclipse.org. If you encounter problems with such a bundle, please contact your distro maintainer.
  • Otherwise, download an Eclipse SDK or Runtime Binary, then unpack it and start it up.
  • Start Update Manager.
  • Select the projects &/or components you want to install.
  • Expand the Callisto Updates site to resolve dependencies. Collapsed sites will not be searched.
  • Select the PDT feature(s) you want to install.
  • Click the Select Required button to resolve missing dependencies.
  • If it does not work, you will have to manually select dependencies.
  • If that doesn't work, start over, but add more update sites. Can't find a given dependency? Try here or here.
  • Install*. Restart. Enjoy.

Debugger

The PDT project does not contain server side implementation for PHP debugging and will welcome any open source or commercial implementation of the debug protocol.

PHP Executable Debugger

  • Install via update site: In the main menu, select Help Install New Software.., add the site http://downloads.zend.com/pdt and follow the instructions.
  • Zend Executable Debugger - A free Eclipse plugin that adds PHP executable debug capabilities to the Eclipse environment.

PHP Web Server Debugger

  • Zend Web Server Debugger - Web server debugger binaries which should be installed on the web server.
  • XDebug Components - XDebug component for web server debugging.
Eclipse For Php Developers

Known Problems

  • If after installing PDT you do not see the PDT perspective, views/editors/file associations do not work, or your get 'An error occurred' messages, try restarting Eclipse with the -clean flag.
  • You may find that your chosen mirror fails due to bug 203794. Until that bug is fixed, try another mirror, or try an FTP site instead of an HTTP site.
  • You may encounter problems on linux with non-existant cups servers in /etc/cups/client.conf (bug 242677). Try running with ./eclipse -Dorg.eclipse.swt.internal.gtk.disablePrinting.
  • You may encounter this error message: Problem occurred: 'Selection Job titile' has encountered a problem. If so, you need to install DLTK 1.0.I200807181303 (or newer). Unpack the zip into your dropins folder (see From Zips above). See also bug 242947.
  • Another variation reported to work: PDT 2.0.0 N20080823 + DLTK Core 0.95.0.v20080716 + DLTK RDS 0.95.0.v20080623
  • If updating from a nightly build to a newer nightly, you will need to uninstall and then reinstall PDT. See bug 241341.

See Also

  • Add a package for PHP developers (feature request / discussion)
Retrieved from 'https://wiki.eclipse.org/index.php?title=PDT/Installation&oldid=421374'