To get the free app, enter your mobile phone number.
php|architect's Guide to PHP Design Patterns Paperback – July 1, 2005
2016 Book Awards
Browse award-winning titles. See all 2016 winners
Customers Who Viewed This Item Also Viewed
About the Author
Top Customer Reviews
My opinions are made upon a few assumptions. Some may agree others may not, which is the point of a personal review, if you share my point of view chances are that you'll experience the same thing.
1) I presume that anyone deciding to learn about design patterns is probably serious about Object Oriented Programming and anyone serious about OOP in PHP should probably switch from PHP4 to PHP5. This book has been out for about a year and a half. PHP5 was already on course to acquire wide acceptance, yet Jason chose to code mainly in PHP4, which is clearly crippled in its OO implementation compared to PHP5.
This is not so much of an issue in chapters where pattern implementation is very similar in both versions, but at times the lack of true OO features in PHP4 made it tedious to go through the examples and I felt like just skipping the PHP4 parts and go straight to the PHP5 ones. It wasn's easy because only some of these examples have a PHP5 equivalent.Read more ›
A great strength of the book is the author's clear devotion to the other practices like test driven development and UML. These things do not get in the way of the book's intent; Sweat gives you code example after code example, and what could be better in a programming book?
Some reviewers are quick to jump on things like typos (there are a few) but grammar aside it's clear the author poured a lot of devotion into this book.
I also like that the book introduced me to patterns that are not covered in Head First or the Gang Of Four book, like the emminently useful Registry Pattern; there are also patterns to solve particular problems for the language, like the Value Pattern. If you've picked up a design patterns book in the past and were put off because all the examples are in Java, you owe it to yourself and your craft to pick this title up.
Next I want to see a book called "Refactoring PHP To Patterns"!!
Throughout the book you'll find lots of hackish PHP4 examples -which are useless now- and lots of badly written PHP5 examples (maybe because PHP5 were just beginning back then).
As I stated on the title, this book should've been good 7 years ago, but for now, it's outdated.
I really don't recommend this book if you understand at least 2 or 3 Design Patterns, or if you are serious about PHP OO programming.
Most Recent Customer Reviews
This book is too heavy on TDD. I am more interested in the pattern not in the test that goes around it! If I wanted to be indoctrinated on TDD I would have read a book on the same.Published on August 14, 2014 by Samir Patel
This book is great, like any other O'Reilly books. It's helpful to those who already have knowledge of PHP.Published on May 7, 2007 by N. Duong
A great book for design patterns comprehension in PHP. There is a huge variety of patterns explained in this book, which helped me a lot. Read morePublished on February 24, 2006 by Jose Carlos Araujo
This book provides an quick insight of current OO patterns. Content is somewhat usefull, but related to much to testing patterns. Read morePublished on January 30, 2006 by Gustavo Sainz