Book Image

PHPEclipse: A User Guide

Book Image

PHPEclipse: A User Guide

Overview of this book

The fusion of Eclipse, the leading open source development environment, and PHP is an exciting prospect for web developers. This book makes sure that you are up and running as quickly as possible, ready to take full advantage of PHPEclipse's tuned PHP development tools, without requiring any prior knowledge of Eclipse. You will begin with installing and configuring PHPEclipse, before moving onto a tour of the Eclipse environment, familiarizing you with its main components. As a plug-in to Eclipse, PHPEclipse is able to harness the platform to provide a rich and powerful development experience. For helping you improve the efficiency of your PHP coding, the book details the powerful editing features of PHPEclipse, and shows you how to use it to better organize your application code. You will see how PHPEclipse helps you throughout the development lifecycle, and learn how to use PHPEclipse's debugger to troubleshoot and step through your PHP code as it executes. The book rounds off with coverage of accessing databases and managing source code from within the. For the final step for your application, you will learn how to deploy your site to a production server."
Table of Contents (12 chapters)
11
Index

Chapter 4. Writing PHP Code with Eclipse

At this point, we have an understanding of Eclipse and how it works. We have a good sense of its features and its Java-centric quirks. We have also set up a development environment based on Apache and PHP. With this, we can now start to create a PHP web application using Eclipse. In this chapter, we will see how to set up a basic application as a project and how to use the editor for code writing. Later, we will walk through creating a whole web application from start to finish. In the process, we will explore how PHPEclipse integrates with other important Eclipse plug-ins and external PHP-related projects.

We will go deeper into our example application of the animal shelter website.