Mastering PHP Design Patterns
by Junade Ali
Print Length 页数: 266 pages
Publisher finelybook 出版社: Packt Publishing (28 Sept. 2016)
Language 语言: English
ISBN-10: 1785887130
ISBN-13: 9781785887130
B01BSTEDKE
Key Features
Learn about advanced design patterns in PHP 7
Understand enhanced architectural patterns
Learn to implement reusable design patterns to address common recurring problems
Book Description
Design patterns are a clever way to solve common architectural issues that arise during software development. With an increase in demand for enhanced programming techniques and the versatile nature of PHP,a deep understanding of PHP design patterns is critical to achieve efficiency while coding.
This comprehensive guide will show you how to achieve better organization structure over your code through learning common methodologies to solve architectural problems. You’ll also learn about the new functionalities that PHP 7 has to offer.
Starting with a brief introduction to design patterns,you quickly dive deep into the three main architectural patterns: Creational,Behavioral,and Structural popularly known as the Gang of Four patterns. Over the course of the book,you will get a deep understanding of object creation mechanisms,advanced techniques that address issues concerned with linking objects together,and improved methods to access your code.
You will also learn about Anti-Patterns and the best methodologies to adopt when building a PHP 7 application. With a concluding chapter on best practices,this book is a complete guide that will equip you to utilize design patterns in PHP 7 to achieve maximum productivity,ensuring an enhanced software development experience.
What you will learn
Recognize recurring problems in your code with Anti-Patterns
Uncover object creation mechanisms using Creational Patterns
Use Structural design patterns to easily access your code
Address common issues encountered when linking objects using the splObserver classes in PHP 7
Achieve a common style of coding with Architectural Patterns
Write reusable code for common MVC frameworks such as Zend,Laravel,and Symfony
Get to know the best practices associated with design patterns when used with PHP 7
About the Author
Junade Ali was a technical lead at some of the UK’s leading digital agencies and has also worked using PHP in mission-critical road-safety systems. He loves pushing PHP to its innovative limits. Having started his career as a web development apprentice,he still remains engaged in the academic computer science community.
Junade,an avid contributor to the PHP community,has also spoken at PHPTek and the Lead Developer Conference. In addition to this,Junade was interviewed by Cal Evans for Voices of the ElePHPant,and he has appeared on the PHP Roundtable. In this spirit,Junade is proud of his local PHP user group: PHPWarks. Currently,Junade works at CloudFlare as a polymath,and helps make the Internet more secure and faster.
Outside of development,Junade has an interest in law and political campaigns and is a published author on constitutional law.
Contents
Why “Good PHP Developer” Isn’t an Oxymoron
Anti-Patterns
Creational Design Patterns
Structural Design Patterns
Behavioral Design Patterns
Architectural Patterns
主要特征
了解PHP 7中的高级设计模式
了解增强的架构模式
学习实现可重复使用的设计模式以解决常见的重复问题
图书说明
设计模式是解决软件开发过程中出现的常见架构问题的一种聪明的方式。随着对增强编程技术的需求的增加和PHP的多功能性,PHP设计模式的深刻理解对于在编码时实现效率至关重要。
本综合指南将向您展示如何通过学习常见方法来解决架构问题,从而实现更好的组织结构。您还将了解PHP 7提供的新功能。
从简要介绍设计模式开始,您可以深入深入了解三种主要的建筑模式: 创作,行为和结构,被广泛地称为“四人帮”。在本书的过程中,您将深入了解对象创建机制,解决与将对象链接在一起的问题的高级技术,以及访问代码的改进方法。
您还将了解构建PHP 7应用程序时采用的反模式和最佳方法。本书是关于最佳实践的总结章节,这本书是一本完整的指南,将使您能够利用PHP 7中的设计模式实现最大的生产力,确保增强的软件开发经验。
你会学到什么
识别您的代码中反复出现的问题
使用创作模式揭开对象创建机制
使用结构设计模式轻松访问您的代码
解决使用PHP 7中的splObserver类链接对象时遇到的常见问题
通过架构模式实现常见的编码风格
为Zend,Laravel和Symfony等常见的MVC框架编写可重用的代码
了解与PHP 7一起使用时与设计模式相关的最佳做法
关于作者
Junade Ali是英国一些领先的数字机构的技术主管,并且还在关键任务的道路安全系统中使用PHP。他喜欢将PHP推向创新的极限。作为一名网络发展学徒,他开始了自己的职业生涯,仍然从事学术计算机科学界。
Junade是PHP社区的狂热贡献者,也在PHPTek和首席开发者大会上发表演讲。除此之外,Junade还被Cal Evans采访了ElePHPant的声音,他也出现在PHP圆桌会议上。本着这种精神,Junade为他当地的PHP用户组感到自豪: PHPWarks。目前,Junade以CloudFlare作为多媒体工具,有助于使互联网更安全,更快捷。
在发展之外,Junade对法律和政治运动感兴趣,是宪法颁布者。
目录
为什么“好的PHP开发者”不是一个Oxymoron
反模式
创作设计模式
结构设计模式
行为设计模式
建筑模式