
iii
Contents at a Glance
■Contents at a Glance.......................................................................................................................iii
■Contents ..........................................................................................................................................v
■About the Author ......................................................................................................................... xvii
■About the Technical Reviewer.................................................................................................... xviii
■Acknowledgments........................................................................................................................ xix
■Introduction to the Third Edition ................................................................................................... xx
Part 1: Introduction.............................................................................................................................1
■Chapter 1: PHP: Design and Management .......................................................................................3
Part 2: Objects ....................................................................................................................................9
■Chapter 2: PHP and Objects...........................................................................................................11
■Chapter 3: Object Basics ...............................................................................................................15
■Chapter 4: Advanced Features.......................................................................................................41
■Chapter 5: Object Tools..................................................................................................................71
■Chapter 6: Objects and Design ......................................................................................................99
Part 3: Patterns...............................................................................................................................121
■Chapter 7: What Are Design Patterns? Why Use Them?..............................................................123
■Chapter 8: Some Pattern Principles ............................................................................................131
■Chapter 9: Generating Objects.....................................................................................................145
■Chapter 10: Patterns for Flexible Object Programming...............................................................169
■Chapter 11: Performing and Representing Tasks........................................................................189
■Chapter 12: Enterprise Patterns ..................................................................................................221
■Chapter 13: Database Patterns....................................................................................................275
Part 4: Practice...............................................................................................................................315
■Chapter 14: Good (and Bad) Practice ..........................................................................................317
■Chapter 15: An Introduction to PEAR and Pyrus..........................................................................323
■Chapter 16: Generating Documentation with phpDocumentor ....................................................347
■Chapter 17: Version Control with Subversion..............................................................................361
■Chapter 18: Testing with PHPUnit................................................................................................379
■Chapter 19: Automated Build with Phing ....................................................................................407
■Chapter 20: Continuous Integration.............................................................................................427
Part 5: Conclusion...........................................................................................................................451
■Chapter 21: Objects, Patterns, Practice ......................................................................................453
■Appendix A: Bibliography ............................................................................................................463
■Appendix B: A Simple Parser.......................................................................................................467
■Index............................................................................................................................................219

iv
Get PHP Objects, Patterns, and Practice, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.