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:  22064 views
Comments:  

Before you start

Are you a PHP developer? If so, then what do you use as your development environment? Maybe you're a minimalist who likes to engage in vi vs. Emacs debates. Or maybe you prefer an IDE, but haven't been impressed with the commercial offerings available. Either way, you'll want to take a look at the PHP Development Toolkit for Eclipse. That's right — Eclipse. It's not just for Java developers anymore. A background in PHP programming is essential for getting the most out of this tutorial. Familiarity with the Eclipse IDE is helpful, but not necessary. For some background information about Eclipse, see Resources.

About this series

In this "Web development with Eclipse Europa" series, you'll see how no matter what your language of choice is, Eclipse is the platform for Web development. Its flexible plug-in system makes it easy to create versions of Eclipse customized for Web development with Java technology, PHP, and Ruby. You'll see how different plug-ins give Eclipse unique capabilities for each language. You'll also see some of the common features that all Web developers can take advantage of. Throughout this series, we will be creating a sample baseball Web application, which will allow us to enter in game data for baseball players and calculate statistics for those players.


About this tutorial

Eclipse has been a favorite IDE for Java developers for many years. However, Eclipse was designed to be a development platform for any language. Eclipse is written in the Java programming language, so, naturally, Java development was an obvious starting point for it. Eclipse's plug-in architecture has led to a bounty of powerful plug-ins and has been key in the success of Eclipse. Taking these two facts together — Eclipse's strength as a development platform for any language and Eclipse's plug-in architecture — and you have the ingredients for an Eclipse-based IDE for PHP. That's exactly what has happened with the development of the PHP Development Toolkit.

This is Part 2 of a three-part tutorial series on developing Web applications with Eclipse. So far, we've seen how easy it is to develop Web applications in the Java language using the Eclipse IDE for Java EE Developers. The Java EE edition is really just a collection of plug-ins running on the Eclipse Platform. In this tutorial, we'll see how to develop PHP applications using a different set of Eclipse plug-ins, collectively known as the PHP Development Toolkit (PDT). We'll also see a reprise of some features in the Java EE Edition that are also part of the PDT.


Prerequisites

A background in Java programming is essential for getting the most out of this tutorial. Familiarity with the Eclipse IDE is helpful, but not necessary.


System requirements

You'll need the following installed on your computer:

Eclipse Europa
This tutorial uses Eclipse V3.3 (Europa).
Java Development Kit (JDK)
This tutorial shows you how to develop Web applications using Java technology, so you'll need the Java Development Kit (JDK) 5.0 or higher. Download V5.0 or V6.0.
Eclipse IDE for Java EE Developers
You'll also need the Eclipse IDE for Java EE Developers.
Java Runtime Environment (JRE)
To run Eclipse, you must have a JRE.
Apache Tomcat
The application uses a Apache Tomcat as its container.
MySQL V5.0
The application uses MySQL V5.0 as its database.
Java Persistence API
You will also need the Java Persistence API and, in particular, the OpenJPA implementation.
Eclipse PHP Development Toolkit (PDT)
This tutorial shows you how to develop Web applications using PHP, so you'll need the PHP Development Toolkit You can get this as a set of plug-ins for an existing Eclipse installation. If you're new to Eclipse, you can get an all-in-one installation that includes the Eclipse platform and the PDT plug-ins.
PHP
You need PHP, so get the latest version, which at the time of this writing was V5.2.1.
Apache HTTP Server
You need a Web server that integrates with PHP. This tutorial was developed using Apache V2.0.59.
Fancy PHP debugger
You need a PHP debugger. We used the Zend Debugger V5.2.10.
Operating system
You need an operating system capable of running all of the above. We used Mac OS X when creating this series, but you can use a modern version of Windows® or Linux®, as well. Adjust locations of files accordingly.

1 of 11 | 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