22.3. Summary

Congratulations on completing this case study! The goal of this case study was to show how a PHP application could be created using Design Patterns. The use of Design Patterns not only made the process quicker but also helped develop the application so that it is more structurally sound.

The application made use of a slew of PHP Design Patterns. The Data Access Object Design Pattern was used in the contact, contactgroup, contactmethod and user classes. The Iterator Design Pattern was used in the userscollection, contactscollection, contactgroupscollection, and contactmethodscollection classes. The Factory Design Pattern was used in the auth and db classes. The Singleton Design Pattern was used in the mysql class. The Decorator Design Pattern was used in the decoratoraddress, decoratoremail, decoratormobilephone, decoratorsocialnetwork, and decoratorwebsite classes. A form of the Builder Design Pattern was used in the importcontactsarraybuilder class. An Adapter Design Pattern was used to create the outlookcontactimportadapter class.

Now, a complete iteration of the ACME Company Contact Manager application has been programmed. As with most programming, however, the first version is not perfect. The next chapter will diagnose any bugs, fix security issues, and identify any areas where the Design Pattern-based programming could be improved. Because I already have a solid code base based on PHP Design Patterns, I predict the hardest part of the next step will be finding ...

Get Professional PHP Design Patterns now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.