Project Zero provides an environment for developing interactive Web applications quickly and simply. The objective of the project is to provide a complete infrastructure for Web deployment so that application developers are free to concentrate on the business logic. To show just how easy it is to get started, you will begin with an empty directory, installing all the required development tools and developing an Ajax Web 2.0 sample using PHP as the back-end scripting language, all within this tutorial. We use Eclipse as the development environment.
The instructions in this tutorial should be all you need, but you can find the full instructions for downloading and installing Project Zero for PHP at the Project Zero site.
Follow the steps in this list to install Project Zero for PHP:
- Create a new empty directory (for example,
- Download the complete development environment for PHP within Eclipse. From the downloads page, you must select a build page (stable builds/S20070910-RC1 was selected for this tutorial, but that could change, so you should select the latest stable build). PLEASE NOTE that earlier versions, such as S20070611-M1, no longer work with the current release of Project Zero. Download the All-in-One PDT .zip file that is relevant to your operating system (for example, pdt-all-in-one-<release_name>-win32.zip) and unzip it in your zero_example directory. For example, if you are using Eclipse, you will have a directory called something like zero_example/<pdt_release_name>/eclipse.
Now that you have set up the development environment, you can install the Eclipse plug-ins that enable you to develop using PHP in Project Zero, as follows:
- Run the copy of eclipse.exe you find in the zero_example/eclipse directory,
and when asked, give it a new workspace name, such as
- From the menu, select Help > Software Updates > Find and Install....
- In the resulting dialog, select Search for new features to install and click Next.
Now you can add a new remote site to search for software updates:
- Click New remote site and in the resulting dialog, give the site a name like
- Assign the new remote site this name:
- Click OK and in the outer dialog, click Finish.
- In the search results dialog, select the whole Project Zero element in the tree and click Next.
- Accept the license agreement and click Next.
- Click Finish and Install All.
The Project Zero environment for PHP is now installed. You will be asked to restart Eclipse, and then the environment is ready to use. Now you can create a simple PHP application.