Professional PHP Design Patterns

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.

From the Back Cover
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, 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.

Book Details

  • Paperback: 288 pages
  • Publisher: Wrox (August 2009)
  • Language: English
  • ISBN-10: 0470496703
  • ISBN-13: 978-0470496701
Download [7.0 MiB]

You may also like...

Leave a Reply