PHP Objects, Patterns, and Practice

- 书名:PHP Objects, Patterns, and Practice
- 作者: MattZandstra
- 格式:PDF
- 时间:2024-06-27
- 评分:
- ISBN:9781484219959
The 5th edition of this popular book has been fully updated for PHP 7, including replacing the PEAR package manager with Composer, and new material on Vagrant and PHP standards. It provides a solid grounding in PHP's support for objects, it builds on this foundation to instill core principles of software design and then covers the tools and practices needed to develop, test and deploy robust code.
PHP Objects, Patterns, and Practicebegins by covering PHP's object-oriented features. It introduces key topics including class declaration, inheritance, reflection and much more.
The next section is devoted to design patterns. It explains the principles that make patterns powerful. The book covers many of the classic design patterns and includes chapters on enterprise and database patterns.The last segment of the book covers the tools and practices that can help turn great code into a successful project. The section shows how to manage multiple developers and releases with git, how to manage builds and dependencies with Composer. It also explores strategies for automated testing and continuous integration.Taken together these three elements: object fundamentals, design principles, and best practice will help the reader develop elegant and rock solid systems.PHP Objects, Patterns, and Practice:Describes and demonstrates PHP's built-in object-oriented featuresBreaks down the principles of object-oriented design, explaining key design patterns using practical examples.Discusses the tools and practices necessary for developing, testing and deploying exemplary applications.What You'll Learn:How to work with object fundamentals: writing classes and methods, instantiating objects, creating powerful class hierarchies using inheritance.Master advanced object-oriented features, including static methods and properties, managing error conditions with exceptions, and creating abstract classes and interfaces.Learn about the new object-oriented features introduced by PHP 7 and why they matter for your code.Understand and use design principles to deploy objects and classes effectively in your projects.Learn about design patterns, their purpose, structure and the underlying principles that govern them. Discover a set of powerful patterns that you can deploy in your own projects.Learn about the tools and practices that can guarantee a successful project including unit testing; version control, build, installation and package management; and continuous integration.Who This Book is For:This book is suitable for anyone with at least a basic knowledge of PHP who wants to use its object-oriented features in their projects.Those who already know their interfaces from their abstracts may well still find it hard to use these features in their systems. They will benefit from the book's emphasis on design. They will learn how to choose and combine the participants of a system; how to read design patterns and how to use them in their code.Finally this book is for PHP coders who want to learn about the practices and tools (version control, testing, continuous integration, etc) that can make projects safe, elegant and stable.
From the Back Cover
The 5th edition of this popular book has been fully updated for PHP 7, including replacing the PEAR package manager with Composer, and new material on Vagrant and PHP standards. It provides a solid grounding in PHP's support for objects, it builds on this foundation to instill core principles of software design and then covers the tools and practices needed ...
- 上一篇: 王朝女性日记
- 下一篇: 在“模范殖民地”胶州湾的统治与抵抗
-
Ryan Chan2017-12-03注解把一个用于生成子对象的静态方法放在父类中是很方便的,然而这样的设计也有不足之处。 Paramhandler类型现在只能与条件语的中规定的类一起工作。如如果需要处理其他格式的文件,怎么办呢?当然,如果你是 Paramhandler的维护者,可以修改 getinstance()方法。但是如果你只是这段代码的使用者,修改这个类就不是那么容易了(实际上,修改它并不难,但是每次重新安装这个包的时候都需要再次修改)。我们将会在第9章中讨论对象创建的问题
-
游鱼戏水2013-11-21在接口级别上,我们可以立即定义两个类。其一是需要一个数据编码器来把Appointment对象转成一个专有的格式,将这个编码器命名为ApptEncoder;另外需要一个管理员类来获取编码器,并使用编码器与第三方进行通信,我们将这个管理类命名为CommsManager类。
-
DavidTian2012-08-01如果修改了一个静态属性,那么这个类的所有实例都能访问到这个新值。
-
英文原版
-
英文原版
-
英文原版
-
英文原版
-
英文原版
-
英文原版
-
英文原版
-
英文原版