PHP Objects, Patterns, and Practice

Front Cover
Apress, Apr 5, 2008 - Computers - 487 pages

Backed by a tireless development community, PHP has been a model of language evolution over its 10+ year history. Borne from a contract developer’s pet project, these days you’ll find PHP powering many of the world’s largest web sites, including Yahoo!, Digg, EA Games, and Lycos.

PHP Objects, Patterns, and Practice, Second Edition shows you how to meld the power of PHP with the sound enterprise development techniques embraced by professional programmers. Going well beyond the basics of object–oriented development, you’ll learn about advanced topics such as working with static methods and properties, abstract classes, interfaces, design patterns, exception handling, and more. You’ll also be exposed to key tools such as PEAR, CVS, Phing, and phpDocumentor.

 

What people are saying - Write a review

User ratings

5 stars
4
4 stars
1
3 stars
0
2 stars
0
1 star
0

Best book for PHP oop

User Review  - TravisO - Borders

This is the best book for OOP in PHP, it's written for people who already know how to program PHP so you don't need to look at the basics. This gives a detailed explanation of OOP support in PHP ... Read full review

Contents

PHP and Objects
11
Object Basics
17
Advanced Features
45
Object Tools
71
Objects and Design
97
Report ProductStore ShopProductWriter ShopProduct
117
Report ProductStore ShopProductWriter ShopProduct
118
What Are Design Patterns?
121
Enterprise Patterns
223
Figure 123 Implementing registry classes for different scopes
232
Figure 129 A Page Controller class hierarchy and its include
263
Figure 1211 An extract from a Domain Model
273
Database Patterns
277
Good and Bad Practice
321
An Introduction to PEAR
329
Generating Documentation
353

Some Pattern Principles
129
Figure 82 shows a bruteforce solution
131
Figure 84 Moving algorithms into a separate type
133
Generating Objects
141
Figure 94 Concrete creator and product classes
152
Patterns for Flexible Object
167
Figure 103 Building variation into an inheritance tree
179
Performing and Representing
187
Figure 112 The Interpreter pattern deployed
196
Figure 167 Creating a link with the see tag
365
Version Control with CVS
369
Testing with PHPUnit
391
Automated Build with Phing
413
Objects Patterns Practice
435
Bibliography
447
A Simple Parser
449
Copyright

Other editions - View all

Common terms and phrases

About the author (2008)

Matt Zandstra has worked as a web programmer, consultant, and writer for nearly two decades. He is the author of SAMS Teach Yourself PHP in 24 Hours (three editions) and a contributor to DHTML Unleashed. He has written articles for Linux Magazine, Zend.com, IBM DeveloperWorks, and php|architect Magazine, among others. Matt works as a consultant advising companies on their architectures and system management, and also develops systems primarily with PHP, and Java. Matt also writes fiction.

Bibliographic information