You are previewing Professional PHP Design Patterns.
O'Reilly logo
Professional PHP Design Patterns

Book Description

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.

    Table of Contents

    1. Copyright
    2. Dedication
    3. About the Author
    4. Credits
    5. Acknowledgments
    6. Introduction
    7. Getting Acquainted with Design Patterns and PHP
      1. Understanding Design Patterns
        1. What Are They?
        2. What Design Patterns Are Not
        3. Design Pattern Demonstration
        4. Why Use Design Patterns in PHP?
        5. Summary
      2. Using Tools Already In Your Arsenal
        1. Patterns in Existing Frameworks
        2. The Standard PHP Library
        3. Using Eclipse PDT with Patterns
        4. Summary
    8. Reference Material
      1. Adapter Pattern
        1. Problem and Solution
        2. UML
        3. Code Examples
      2. Builder Pattern
        1. Problem and Solution
        2. UML
        3. Code Example
      3. Data Access Object Pattern
        1. Problem and Solution
        2. UML
        3. Code Example
      4. Decorator Pattern
        1. Problem and Solution
        2. UML
        3. Code Example
      5. Delegate Pattern
        1. Problem and Solution
        2. UML
        3. Code Example
      6. Fa├žade Pattern
        1. Problem and Solution
        2. UML
        3. Code Example
      7. Factory Pattern
        1. Problem and Solution
        2. UML
        3. Code Example
      8. Interpreter Pattern
        1. Problem and Solution
        2. UML
        3. Code Example
      9. Iterator Pattern
        1. Problem and Solution
        2. UML
        3. Code Example
      10. Mediator Pattern
        1. Problem and Solution
        2. UML
        3. Code Example
      11. Observer Pattern
        1. Problem and Solution
        2. UML
        3. Code Example
      12. Prototype Pattern
        1. Problem and Solution
        2. UML
        3. Code Example
      13. Proxy Pattern
        1. Problem and Solution
        2. UML
        3. Code Example
      14. Singleton Pattern
        1. Problem and Solution
        2. UML
        3. Code Example
      15. Strategy Pattern
        1. Problem and Solution
        2. UML
        3. Code Example
      16. Template Pattern
        1. Problem and Solution
        2. UML
        3. Code Example
      17. Visitor Pattern
        1. Problem and Solution
        2. UML
        3. Code Example
    9. PHP Design Case Study
      1. Requirements Analysis
        1. Initial Requirements
        2. Initial Requirements Analysis
        3. Updated Requirements Document
        4. Updated Requirements Discussion
        5. Summary
      2. Choosing Design Patterns and Planning
        1. Designing the Core
        2. Designing User Interaction
        3. Designing Contact Administration
        4. Summary
      3. Programming the Application
        1. Information Preparation
        2. Application Programming
        3. Summary
      4. Improving with More Design Patterns
        1. Working with Contacts Import
        2. Removing Logic from Views
        3. Try Implementing Design Patterns
        4. Summary
    10. Index