Professional PHP Design Patterns

Professional PHP Design Patterns

3.47 (19 ratings by Goodreads)
By (author) 

List price: US$44.98

Currently unavailable

Add to wishlist

AbeBooks may have this title (opens in new window).

Try AbeBooks


This guide helps PHP developers take advantage of the stability and features of design patterns 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.
show more

Product details

  • Paperback | 288 pages
  • 185.42 x 231.14 x 17.78mm | 498.95g
  • United States
  • English
  • 0470496703
  • 9780470496701
  • 1,011,149

Back cover copy

PHP is often considered to be the cornerstone for buildingflexible and feature-rich web applications. Because of its relatively simple initial learning curve, newer programmers can easily create applications in PHP from the ground up. As these applications scale, however, the maintenance can seem daunting. Luckily, the mature programming community has something to offer: Design Patterns. These repeatable solutions for common problems have been applied for years to other programming languages. This book aims to bridge the gap between the PHP and the older programming language by applying those tried and tested Design Patterns to native PHP applications. 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, Facade, 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
show more

Table of contents

Introduction. Part I: Getting Acquainted with Design Patterns and PHP. Chapter 1: Understanding Design Patterns. Chapter 2: Using Tools Already In Your Arsenal. Part II: Reference Material. Chapter 3: Adapter Pattern. Chapter 4: Builder Pattern. Chapter 5: Data Access Object Pattern. Chapter 6: Decorator Pattern. Chapter 7: Delegate Pattern. Chapter 8: Facade Pattern. Chapter 9: Factory Pattern. Chapter 10: Interpreter Pattern. Chapter 11: Iterator Pattern. Chapter 12: Mediator Pattern. Chapter 13: Observer Pattern. Chapter 14: Prototype Pattern. Chapter 15: Proxy Pattern. Chapter 16: Singleton Pattern. Chapter 17: Strategy Pattern. Chapter 18: Template Pattern. Chapter 19: Visitor Pattern. Part III: PHP Design Case Study. Chapter 20: Requirements Analysis. Chapter 21: Choosing Design Patterns and Planning. Chapter 22: Programming the Application. Chapter 23: Improving with More Design Patterns. Index.
show more

About Aaron Saray

Aaron Saray was introduced to a second-hand Commodore 64, with no persistent storage, when he was 8 years old. This fueled his appetite for computer science which carried him through many different languages and computers. Aaron finally settled on PHP as his language of choice in 2001. From then on, he continued to pepper in various other web languages such as HTML, CSS and JavaScript while continually building on his PHP expertise. Along his career path, Aaron has designed and maintained web site tools for an Internet Service Provider, created web based account management tools for subscribers of a major dental insurance company and led the development efforts of back-office websites for Internet connected Point of Sales systems. After becoming a Zend Certified Engineer, Aaron started his own web development company based around open source software. He continues to release open source software and keeps an updated PHP centric blog at
show more

Rating details

19 ratings
3.47 out of 5 stars
5 11% (2)
4 42% (8)
3 32% (6)
2 16% (3)
1 0% (0)
Book ratings by Goodreads
Goodreads is the world's largest site for readers with over 50 million reviews. We're featuring millions of their reader ratings on our book pages to help you find your new favourite book. Close X