
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required. Learn more
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.

Professional PHP Design Patterns 1st Edition
Design patterns are the cornerstones of building solid, stable, flexible, and feature-rich Web applications. This guide enables PHP developers to take advantage of everything they offer.
If you are unfamiliar with design patterns, this book explains what you need to know. Both novice and veteran PHP developers will benefit from the alphabetical list of design patterns and code examples showing how to implement each pattern in PHP. Step-by-step instructions for a sample contact management system will help you understand real-world applications for the information.
- Gets PHP developers who have not used design patterns up to speed on the technology
- Shows programmers who are familiar with design patterns in other languages how to apply the techniques to PHP
- Includes examples of ordinary code used in everyday development and how to modify it for one of the design patterns discussed
- Provides an alphabetical list of common design patterns, with code examples showing how each can be implemented in PHP
- Uses a case study of a contact management system to analyze and demonstrate the step-by-step process of applying design patterns
With its single focus on applying design patterns to PHP development, PHP Design Patterns helps both new and veteran PHP programmers improve their applications and their career prospects.
- ISBN-100470496703
- ISBN-13978-0470496701
- Edition1st
- PublisherWrox
- Publication dateAugust 24, 2009
- LanguageEnglish
- Dimensions7.42 x 0.6 x 9.3 inches
- Print length288 pages
Editorial Reviews
From the Back Cover
This book starts with an introduction to Design Patterns, describes their use and importance, and details where you've seen them already. It continues through a host of Design Patterns with code examples and explanations. Finally, an in-depth case study shows you how to plan your next application using Design Patterns, how to program those patterns in PHP, and how to revise and refactor an existing block of code using Design Patterns from the book. The author approaches the concepts in technical yet usable formats that are familiar to both programmers who are self-taught and those with more extensive formal education.
What you will learn from this book
What Design Patterns are and why they matter in PHP
Commonly established PHP Library usage of Design Patterns
Faster and more efficient object creation with Design Patterns like Builder, Façade, Prototype and Template
Decoupled architecture using Data Access Object and Proxy Design Patterns
Better code flow and control using the Delegate, Factory and Singleton Design Patterns
How to implement Visitor and Decorator Design Patterns to enhance objects without modifying their core
Comprehensive plug-in creation techniques using Observer Design Pattern
How to plan application architecture using Design Patterns
How to program a case study web site from start to finish with Design Pattern based coding
How to recognize architectural benefits from Design Patterns in an existing application
Methods to further strengthen code from case study analysis
Who this book is for
This book is for experienced PHP programmers who are looking to enhance the quality of their code architecture with Design Patterns.
Wrox Professional guides are planned and written by working programmers to meet the real-world needs of programmers, developers, and IT professionals. Focused and relevant, they address the issues technology professionals face every day. They provide examples, practical solutions, and expert education in new technologies, all designed to help programmers do a better job.
Updates, source code, and Wrox technical support at www.wrox.com
About the Author
Product details
- Publisher : Wrox; 1st edition (August 24, 2009)
- Language : English
- Paperback : 288 pages
- ISBN-10 : 0470496703
- ISBN-13 : 978-0470496701
- Item Weight : 1.14 pounds
- Dimensions : 7.42 x 0.6 x 9.3 inches
- Best Sellers Rank: #4,015,244 in Books (See Top 100 in Books)
- #299 in PHP Programming
- #3,889 in Web Design (Books)
- #14,347 in Programming Languages (Books)
- Customer Reviews:
About the author

Discover more of the author’s books, see similar authors, read author blogs and more
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on Amazon-
Top reviews
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
I have had the book for only 2 days and I already used the facade and the decorator pattern in a project. Just after I got the code installed on the website the owner changed his mind and requested some code changes. I found that it was much easier to manage his changes since I used the design patterns shown in this book. Actually it was almost a pleasure to make the changes to the code since it was set up properly in the first place.
Every pattern has a simple, real life example of a problem and a simple solution. One of the things you have to realize about this book is that the patterns are not plug-and-play. You can't just insert the patterns into your project without modifying them; they have to be tailored to fit your project. Luckily, the pattern examples are clear enough that that shouldn't be a problem in most circumstances. I would recommend this book if you want to better organize your code and improve its scalability.
Also, I initially did not realize that there were a few chapters at the end of the book regarding implementing the patterns. The author talks about planning a project using Patterns, and then in another chapter builds the project. I will probably read over these chapters, as I would assume they are good examples of the patterns in action. When I originally wrote this review, I gave the product 5 stars BEFORE I realized these final chapters existed. I was pleasantly surprised by just the reference material. These final chapters are an added bonus in my book.
The problems of this book are:
- examples for each pattern: only one example and very very very ... too simple! examples in design pattern are very important - for me - , I think that a usefull book on patterns should present four or five examples for each pattern, at least.
- not all patterns are treated! What about "Chain of Responsability"? And "Abstract Factory"? And "Bridge"? And "composite" ? And "Flyweight"? This book has only 238 page, and you treat about pattern from 26 to 125 ... I think this is not enought.
Top reviews from other countries

Idéal pour quelqu'un qui veut renforcer sa connaissance du PHP orienté objet ou produire du code au niveau du standard professionnel.