PHP 5 Objects, Patterns, and Practice

Front Cover
Apress, Jan 4, 2005 - Computers - 456 pages

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.

 

What people are saying - Write a review

We haven't found any reviews in the usual places.

Contents

Design and Management
3
PHP and Objects
11
Object Basics
15
Advanced Features
43
Object Tools
69
Objects and Design
93
What Are Design Patterns? Why Use Them?
117
Some Pattern Principles
125
Enterprise Patterns
219
Good and Bad Practice
293
An Introduction to PEAR
307
Generating Documentation with phpDocumentor
323
Version Control with CVS
339
Automated Build with Phing
359
Objects Patterns Practice
383
Bibliography
395

Generating Objects
137
Designing for Object Relations
163
Performing and Representing Tasks
185
A Simple Parser
399
INDEX
417
Copyright

Other editions - View all

Common terms and phrases

About the author (2005)

Matt Zandstra has worked as a Web programmer, consultant and writer for a decade. He has been an object evangelist for most of that time. Matt is the author of SAMS Teach Yourself PHP in 24 Hours (three editions), and contributed to DHTML Unleashed. He has written articles for Linux Magazine and Zend.com. Matt works primarily with PHP, Perl and Java, building online applications. He is an engineer at Yahoo! in London.

Matt lives in Brighton, U.K. with his wife, Louise, and two children, Holly and Jake. Because it has been so long since he has had any spare time, he only distantly recollects that he runs regularly to offset the effects of his liking for pubs and cafes, and for sitting around reading and writing fiction. Learn more on Matt's website, getInstance.com.

Bibliographic information