Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your profile (name, country/region, and company) is displayed to the public and will accompany any content you post. You may update your IBM account at any time.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Web development with Eclipse Europa, Part 2: PHP development tools

How to use Eclipse Europa for Web development using Java technology, PHP, and Ruby

Michael Galpin, Developer, eBay
Michael Galpin's photo
Michael Galpin has been developing Java software professionally since 1998. He currently works for eBay. He holds a degree in mathematics from the California Institute of Technology.

Summary:  No matter what combination of technologies you prefer to work with as a Web developer, Eclipse is a single integrated development environment (IDE) that can increase your productivity. In Part 1 of this three-part "Web development with Eclipse Europa" series, you saw how the latest release of Eclipse — Europa — can be used to develop Java™ Web applications rapidly. Here Part 2, we'll see how easy it is to develop PHP applications using a different set of Eclipse plug-ins, collectively known as the PHP Development Toolkit (PDT).

View more content in this series

Date:  11 Dec 2007 PDF:  A4 and Letter (2116 KB | 44 pages)Get Adobe® Reader®

Activity:  22037 views
Comments:  

Installing the PDT

Getting and setting up the PDT is pretty painless. It's not just built on Eclipse. Like Eclipse, it's completely open source. There are no trial periods or licenses to worry about. Just download it and go. There are two ways to download it, depending if you already have Eclipse. If you completed Part 1 of this series, you already have the Eclipse Java EE Edition. We'll first look at installing the PDT on top of Eclipse.

Install as a plug-in

We'll start by installing PDT as a plug-in to Eclipse. Eclipse's plug-in architecture makes this easy. The easiest way to install any Eclipse plug-in is to use its update system. Kick that off by selecting Help > Software Updates > Find and Install, as shown below.


Figure 1. Find and install updates
Find and install updates

Now you want to select Search for new features to install, as shown below.


Figure 2. Search for new features to install
Search for new features to install

Now we need to add the PDT's update site to the list of sites that Eclipse knows about. Do that by clicking New Remote Site.


Figure 3. New remote update site
New remote update site

Now we need to enter the PDT update site's info. For the name of the new remote site, you can pick whatever you want to help you identify the site ("PHP Development Toolkit Updates," for example). The URL is the important field to enter, and the official site is http://download.eclipse.org/tools/pdt/updates, as shown below.


Figure 4. PHP update site information
PHP update site information

The new update site should appear in the list of sites and should be selected automatically. Make sure it's the only one selected and click Finish.


Figure 5. Select PHP update site
Select PHP update site

Eclipse will now ping the update site for a list of updates available to download and install. Select PHP Development Toolkit Updates and click Finish.


Figure 6. Available updates
Available updates

Now you should see the list of features to install and the license agreement. Accept the terms and click Finish.


Figure 7. Features and license agreement
Features and license agreement

Now Eclipse will download and install the PDT plug-ins. When it's done, it may ask you to restart Eclipse. After that, you should be able to verify the PDT installation by switching to the PHP Perspective. Select Window > Open Perspective > Other.


Figure 8. Changing perspective
Changing perspective

This should bring up a list of available perspectives. Select PHP from the list and click OK.


Figure 9. Select PHP perspective
Select PHP perspective

This should open the PHP perspective. We'll be using that soon, but let's take a quick look at an alternate way to install the PDT.


Install stand-alone

If you're new to Eclipse, there's an even simpler way to install the PDT. You can download an all-in-one distribution of Eclipse and the PDT. Select and download the PDT All-In-One, then unzip it and launch Eclipse. Once you've launched Eclipse, switch to the PHP perspective by selecting Window > Open Perspective > PHP.


Figure 10. Open PHP perspective
Open PHP perspective

Now we should have PDT installed and ready to use. We need to configure Eclipse PDT.

3 of 11 | Previous | Next

Comments



static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Open source, Java technology
ArticleID=275852
TutorialTitle=Web development with Eclipse Europa, Part 2: PHP development tools
publish-date=12112007
author1-email=mike.sr@gmail.com
author1-email-cc=ruterbo@us.ibm.com