Join Amazon Prime and ship Two-Day for free and Overnight for $3.99. Already a member? Sign in.

 

or
Sign in to turn on 1-Click ordering.
 
   
More Buying Choices
39 used & new from $15.87

Have one to sell? Sell yours here
 
   
PHP|Architect's Guide to PHP Design Patterns
 
 
Tell the Publisher!
I’d like to read this book on Kindle

Don’t have a Kindle? Get yours here.
 
  

PHP|Architect's Guide to PHP Design Patterns (Paperback)

by Jason E. Sweat (Author) "LEARNING A NEW TECHNIQUE means adopting new practices..." (more)
Key Phrases: function isvalid, mock objects, function rewind, Active Record, Data Mapper, Table Data Gateway (more...)
3.7 out of 5 stars See all reviews (7 customer reviews)

List Price: $34.99
Price: $30.09 & this item ships for FREE with Super Saver Shipping. Details
You Save: $4.90 (14%)
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

Only 1 left in stock--order soon (more on the way).

Want it delivered Tuesday, July 7? Choose One-Day Shipping at checkout. Details
24 new from $21.47 15 used from $15.87

Frequently Bought Together

Customers buy this book with php|architect's Guide to PHP Security| by Ilia Alshanetsky

PHP|Architect's Guide to PHP Design Patterns + php|architect's Guide to PHP Security|
Price For Both: $57.47

Customers Who Bought This Item Also Bought

PHP Objects, Patterns, and Practice, Second Edition

PHP Objects, Patterns, and Practice, Second Edition

by Matt Zandstra
4.5 out of 5 stars (8)  $29.69
Pro PHP: Patterns, Frameworks, Testing and More

Pro PHP: Patterns, Frameworks, Testing and More

by Kevin McArthur
4.1 out of 5 stars (8)  $31.49
php|architect's Zend PHP 5 Certification Study Guide

php|architect's Zend PHP 5 Certification Study Guide

by Davey Shafik
3.4 out of 5 stars (9)  $32.99
Design Patterns: Elements of Reusable Object-Oriented Software (Addison-Wesley Professional Computing Series)

Design Patterns: Elements of Reusable Object-Oriented Software (Addison-Wesley Professional Computing Series)

by Erich Gamma
4.5 out of 5 stars (261)  $47.99
Practical Web 2.0 Applications with PHP

Practical Web 2.0 Applications with PHP

by Quentin Zervaas
4.6 out of 5 stars (16)  $30.34
Explore similar items

Editorial Reviews

Product Description
You have probably heard a lot about Design Patterns—a technique that helps you design rock-solid solutions to practical problems that programmers everywhere encounter in their day-to-day work.

Even though there has been a lot of buzz, however, no-one has yet come up with a comprehensive resource on design patterns for PHP developers—until today.

Author Jason E. Sweat's book php|architect's Guide to PHP Design Patterns is the first, comprehensive guide to design patterns designed specifically for the PHP developer. This book includes coverage of 16 design patterns with a specific eye to their applications in PHP when building complex web applications, both in PHP 4 and PHP 5 (where appropriate, sample code for both versions of the language is provided). With a thorough, test-driven approach, this book represents the definitive guide to design patterns for the PHP developer.

As you can expect from a php|architect book, this Guide is very focused on its topic, with none of the fluff that accompanies the large, expensive titles you sometimes find at the bookstore. Naturally, this doesn't come at the expense of depth of coverage or clarity: the book contains tens of scripts that give you a practical overview of every topic covered, from top to bottom.

About the Author
Jason has been an IT professional for over ten years. He is currently the Manager of eBusiness for a Fortune 100 company. He has written several tutorials and articles for the Zend website and php|architect magazine, and has presented talks at numerous PHP conferences. He is also the author of "php|architect's Guide to PHP Patterns". He resides in Iowa with his wife and two children.


Product Details

  • Paperback: 340 pages
  • Publisher: Marco Tabini & Associates, Inc. (July 1, 2005)
  • Language: English
  • ISBN-10: 0973589825
  • ISBN-13: 978-0973589825
  • Product Dimensions: 9.1 x 7.6 x 0.6 inches
  • Shipping Weight: 1.3 pounds (View shipping rates and policies)
  • Average Customer Review: 3.7 out of 5 stars See all reviews (7 customer reviews)
  • Amazon.com Sales Rank: #619,280 in Books (See Bestsellers in Books)

Inside This Book (learn more)



Books on Related Topics (learn more)
 
 

What Do Customers Ultimately Buy After Viewing This Item?

PHP|Architect's Guide to PHP Design Patterns
48% buy the item featured on this page:
PHP|Architect's Guide to PHP Design Patterns 3.7 out of 5 stars (7)
$30.09
Pro PHP: Patterns, Frameworks, Testing and More
18% buy
Pro PHP: Patterns, Frameworks, Testing and More 4.1 out of 5 stars (8)
$31.49
PHP Objects, Patterns, and Practice, Second Edition
17% buy
PHP Objects, Patterns, and Practice, Second Edition 4.5 out of 5 stars (8)
$29.69
Practical Web 2.0 Applications with PHP
10% buy
Practical Web 2.0 Applications with PHP 4.6 out of 5 stars (16)
$30.34

Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
Check the boxes next to the tags you consider relevant or enter your own tags in the field below.
(4)
(2)
(1)

Your tags: Add your first tag
 
Help others find this product — tag it for Amazon search
No one has tagged this product for Amazon search yet. Why not be the first to suggest a search for which it should appear?

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

 

Customer Reviews

7 Reviews
5 star:
 (3)
4 star:
 (1)
3 star:
 (2)
2 star:    (0)
1 star:
 (1)
 
 
 
 
 
Average Customer Review
3.7 out of 5 stars (7 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
27 of 27 people found the following review helpful:
3.0 out of 5 stars Ok book, but could've been way better, December 12, 2006
By Michael Ekoka (Montreal, Qc Canada) - See all my reviews
(REAL NAME)   
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 turn around techniques deployed to mimic the simplest features natural to true OOP, like the underscore naming convention to emulate private variables, using 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
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
15 of 17 people found the following review helpful:
4.0 out of 5 stars An excellent primer on design patterns in PHP, October 24, 2005
By Steve Wainstead (Jackson Heights, NY United States) - See all my reviews
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"!!
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
7 of 10 people found the following review helpful:
3.0 out of 5 stars Book review, January 30, 2006
By Gustavo Sainz "Gustavo" (GREER, SC United States) - See all my reviews
(REAL NAME)   
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.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

5.0 out of 5 stars best design pattern book for PHP yet.
I'm relatively new to objects and design patterns and have been learning them for only the last 4 months. Read more
Published 13 months ago by PHP Junkie

5.0 out of 5 stars Great book!
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

5.0 out of 5 stars PHP, Design Patterns, OOP (great book)
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 more
Published on February 24, 2006 by Jose Carlos Araujo

1.0 out of 5 stars This book is not about Design Patterns
From the offset, you are informed that this entire book is based on a test-writing then code-developing method of development that requires the implementation of an outside... Read more
Published on November 1, 2005 by Code Jockey

Only search this product's reviews



Customer Discussions

 Beta (What's this?)
New! See all customer communities, and bookmark your communities to keep track of them.
This product's forum (0 discussions)
  Discussion Replies Latest Post
  No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
  [Cancel]

   


Product Information from the Amapedia Community

Beta (What's this?)



Look for Similar Items by Category


SpaFeatures: Free Shipping

bath poof
Get free shipping on all SpaFeatures orders of $50 or more. See new items from SpaFeatures here.

Shop SpaFeatures now

 

Best Books of 2008

Best of 2008
Find our top 100 editors' picks as well as customers' favorites in dozens of categories in our Best Books of 2008 Store.
 

Summer Reading for Kids & Teens

Summer Reading for Kids and Teens
Discover everything from beach reads and board books to teen romance and action-adventure series in Summer Reading for Kids & Teens. And, check off the kids' required reading lists in our Summer School Reading Store.
 

Never Be Out of Touch

Shop inverters for your cell phone
Keep your cell phone charged as you travel. Find functional and durable inverters in the Home Improvement Store.

Shop for power inverters

 

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Where's My Stuff?

Shipping & Returns

Need Help?

Your Recent History

  (What's this?)
You have no recently viewed items or searches.

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.

Look to the right column to find helpful suggestions for your shopping session.

Continue shopping: Top Sellers
Paranoia
Paranoia by Joseph Finder
Glenn Beck's Common Sense
Glenn Beck's Common Sense
Darkfever
Darkfever by Karen Marie Moning

Conditions of Use | Privacy Notice © 1996-2009, Amazon.com, Inc. or its affiliates