Apress

PHP 5 Objects, Patterns, and Practice

By Matt Zandstra

PHP 5 Objects, Patterns, and Practice Cover Image

This practical design and management book is devoted to examining object-oriented programming in PHP 5, the latest and most powerful version of PHP. Using a wide variety of pattern examples, this insightful text explores the principles underlying design patterns, focusing largely on those patterns collected by the "Gang of Four."

Full Description

  • ISBN13: 978-1-59059-380-6
  • 456 Pages
  • User Level: Beginner to Advanced
  • Publication Date: January 3, 2005
  • Available eBook Formats: PDF
  • Print Book Price: $39.99
  • eBook Price: $27.99
Buy eBook Buy Print Book Add to Wishlist

Related Titles

Full Description

PHP 5's object-oriented enhancements are among the most significant improvements in the 10+ year history of the language. This book introduces you to those features and the many opportunities they provide, as well as a number of tools that will help you maximize development efforts.

The book begins with a broad overview of PHP 5's object-oriented features, introducing key topics like class declaration, object instantiation, inheritance, and method and property encapsulation. You’ll also learn about advanced topics including static methods and properties, abstract classes, interfaces, exception handling, object cloning, and more. You’ll also benefit from an extensive discussion regarding object-oriented design best practices.

The next part of the book is devoted to a topic that is often a natural extension of any object-oriented introduction: design patterns. PHP 5 is particularly well-suited to the deployment of these solutions for commonly occurring programming problems. The author will introduce pattern concepts and show you how to implement several key patterns in your PHP applications.

The last segment introduces a number of great utilities that help you document, manage, test, and build your PHP applications, including Phing, PHPUnit2, phpDocumentor, PEAR, and CVS.

Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.

Errata

If you think that you've found an error in this book, please let us know about it. You will find any confirmed erratum below, so you can check if your concern has already been addressed.

* Required Fields

On page 207:

On the figure 11-6 Observable interface should have instances of Observer as parameters for the attach() and update()