Shop now Learn more Shop now Shop All Amazon Fashion Shop Suki Ad Campaign Pieces Cloud Drive Photos Shop now Amazon Fire TV Shop now Halloween Pets Shop now Shop Fire Shop Kindle Voyage Listen in Prime Learn more Shop now
FREE Delivery in the UK.
Only 2 left in stock (more on the way).
Dispatched from and sold by Amazon.
Gift-wrap available.
PHP|architect's Guide to ... has been added to your Basket
+ £2.80 UK delivery
Used: Very Good | Details
Condition: Used: Very Good
Comment: Expedited shipping available on this book. The book has been read, but is in excellent condition. Pages are intact and not marred by notes or highlighting. The spine remains undamaged.
Have one to sell?
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more
See this image

PHP|architect's Guide to PHP Design Patterns Paperback – 25 Jul 2005

4 customer reviews

See all formats and editions Hide other formats and editions
Amazon Price
New from Used from
Paperback, 25 Jul 2005
"Please retry"
£19.99 £1.49
£19.99 FREE Delivery in the UK. Only 2 left in stock (more on the way). Dispatched from and sold by Amazon. Gift-wrap available.

Special Offers and Product Promotions

  • Save £20 on with the aqua Classic card. Get an initial credit line of £250-£1,200 and build your credit rating. Representative 32.9% APR (variable). Subject to term and conditions. Learn more.

No Kindle device required. Download one of the Free Kindle apps to start reading Kindle books on your smartphone, tablet and computer.

  • Apple
  • Android
  • Windows Phone

To get the free app, enter your e-mail address or mobile phone number.

Product details

  • Paperback: 340 pages
  • Publisher: Marco Tabini & Associates, Inc. (25 July 2005)
  • Language: English
  • ISBN-10: 0973589825
  • ISBN-13: 978-0973589825
  • Product Dimensions: 19.1 x 1.8 x 23.5 cm
  • Average Customer Review: 2.2 out of 5 stars  See all reviews (4 customer reviews)
  • Amazon Bestsellers Rank: 1,676,641 in Books (See Top 100 in Books)

Product Description

No PHP Architect's Guide to PHP Design Patterns Read a customer review or write one .

What Other Items Do Customers Buy After Viewing This Item?

Customer Reviews

2.3 out of 5 stars
Share your thoughts with other customers

Most Helpful Customer Reviews

11 of 11 people found the following review helpful By Eamonn Sweeney on 6 Mar. 2007
I am a little disappointed with the format of this book. It should be titled an introduction to test driven development. I bought the book based on some of the posts Jason has made on sitepoints advanced php forum and thought it may be a useful addition to my collection of patterns books, alas this one will sit on the shelf gathering dust.

Far too much of this book is taken up with writing tests to validate the code examples. I did not buy this book to learn test driven design. I bought it to read Jason's take on design patterns. While the patterns are thoughtfully presented and discussed the code examples in both php4 and php5 are again a waste of bookspace. I wish he had concentrated on one or the other.
If you remove the testing and php4 examples there is not a lot of the book left for a php5 developer.

Whilst I like Jason's writing style and respect his views I cannot recommend this book.

Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
4 of 4 people found the following review helpful By A. Ogden on 14 Sept. 2007
Verified Purchase
I agree completely with the last reviewer in regards to this book. The book completely loses your focus by concentrating first and foremost on creating TestUnits and completely ruining the focus on trying to teach patterns.

I have since purchased the Java based book 'Head First, Design Patterns' which in stark contrast to this book make learning patterns both a) FUN and b) INTERESTING and despite being Java based for the most part, it make the patterns extremely easy to understand and re-writing them in PHP is the easy part (actually makes it more fun).

This book is took dull and the TestUnit focus completely lost me, I'm going to give my copy to the local library, perhaps someone may find it useful.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
Verified Purchase
This IS a good book, but it's not what you might expect. This book has a huge focus on test driven development, which, if that's what you're looking for, is explained well. The tests do aid in understanding design patters as they provide clear implementation examples. The patterns are explained well, but briefly, with little in the way of real world examples. If, like me, you've read a lot of books on design patterns, you'll find this style quite useful and this book will make a great reference.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
2 of 3 people found the following review helpful By Keith Whyman on 21 Mar. 2008
in total agreement - if you want to learn about unit tests - then enjoy this book.
Design patterns are mentioned and described in short terms with a huge lack of practical examples.
Avoid !
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again

Most Helpful Customer Reviews on (beta) 10 reviews
31 of 31 people found the following review helpful
Ok book, but could've been way better 12 Dec. 2006
By Michael Ekoka - Published on
First off I don't enjoy giving a bad mark to other people's effort. It's often too easy to put a tag value on something we had nothing to do with and even bad books are well intentioned. That been said, this book is far from being bad. The content is actually pretty good and Jason E. Sweat succeeds very well in explaining the patterns and their application in PHP. However, there's room for improvement and although I was really looking forward to give some kudos, I did have some issues with the book. I took some time to review it to help make it better in subsequent editions.

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.

We are therefore often confined to make sense of all the PHP4 idiosyncrasies deployed to mimic the simplest features natural to true OOP, like the use of global variables to emulate staticity, prepending the ampersand (&) to pass objects by reference and other little 'tricks' that succeed more at veering attention away from the pattern at hand to language features.

2) I presume that most people who got this book did because of the two keywords in the title 'Design Patterns'. Yet there is as much, if not more, about Test Driven Development (TDD) using Simpletest as there is about design patterns. Don't get me wrong, TDD is an excellent coding practice, but as much as it can be practiced along with design patterns both can be clearly isolated. If, like me, you learn by focusing on one specific topic at a time, you will find this book's approach very annoying at times.

First, it's an informal introduction to TDD. You will probably need more support from a more specific text on TDD before really becoming proficient at it, so I don't see the point in trying to actually teach it along with design patterns. An introductory chapter would have been enough (the Mockobject Pattern chapter was perfect for this) and maybe an appendix with links to tests for the examples for those interested.

Second, Jason's insistence to test every bit of piece of code makes the reading even more tedious. Examples are cluttered with tests and the logic doesn't flow as smoothly anymore. Plus, TDD is an iterative coding process, meaning that you write a little test and then you implement just enough logic for the test to pass, then you add some more test and then you... repeat until done. If in real life the overall result can be good, it is not very practical to try and reproduce it in a book. Your tests may never be exhaustive or meaningful enough to actually matter and you may be constrained to use examples a tad bit too simplistic to illustrate your point, which is exactly what happens in this book.

I felt that the introduction of TDD in the book was meant exactly as a separate attempt at explaining that technique, not as a support to understand design patterns and the two topics became somehow intertwined and less substantial. Trying to chase a rooster and a rabbit, we're left with a chick and a bunny.

Here are my recommendations for the next edition:
- Forget php4
- Keep TDD for another book or introduce it in the mockobject pattern chapter or an appendix
- Concentrate on design patterns
- Include more solid examples
- Work more on refactoring solutions to really show how they remap to patterns
16 of 19 people found the following review helpful
An excellent primer on design patterns in PHP 24 Oct. 2005
By Steve Wainstead - Published on
Verified Purchase
While you can do much better for a first book on design patterns if you are new to the topic (get O'Reilly's Head First Design Patterns), this book is a must-have for learning common patterns to problems PHP developers face.

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"!!
1 of 1 people found the following review helpful
Weak - But, should've been good 7 years ago 12 Jan. 2012
By Willy Barro - Published on
The book starts fairly well but get lost after some pages. It focus a lot on tests - hey! TDD is great but it shouldn't have so much focus on a design patterns book.
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.
best design pattern book for PHP yet. 12 May 2008
By PHP Junkie - Published on
I'm relatively new to objects and design patterns and have been learning them for only the last 4 months. As most people know PHP 5 was the first iteration of a half way decent obeject implementation in PHP. Therefore there is just now beginning to be OO related design books on the market for this functionality. I've bought them all as my opinion is this on trumps the rest. It's not going to tell you much on object theory or PHP's object syntax. However when it comes to design architecture it's be best I've found for PHP specifically. Outside of that if you're looking for good Design Pattern and Architecture theory stuff you should start reading Java based books as there's some really good ones.
8 of 12 people found the following review helpful
Book review 30 Jan. 2006
By Gustavo Sainz - Published on
Verified Purchase
This book provides an quick insight of current OO patterns. Content is somewhat usefull, but related to much to testing patterns. It's good for a beginner programmer who want to start a project using OO.

The quality of the paper and ink is like a home made printed book. The price is too high for that quality.
Were these reviews helpful? Let us know