PHP Objects, Patterns, and Practice [electronic resource] /
Zandstra, Matt.author.
PHP Objects Patterns and Practice, Fourth Edition is revised and updated throughout. The book begins by covering PHP's object-oriented features. It introduces key topics including class declaration, inheritance, reflection and much more. These provide the fundamentals of the PHP's support for objects. It also introduces some principles of design. This edition introduces new object relevant features such as traits, reflection extension additions, callable type hinting, improvements to exception handling, and many smaller language enhancements. The next section is devoted to design patterns. These describe common problems and their solutions. The section describes the design principles that make patterns powerful. It 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 build and install using Phing and PEAR. It also explores strategies for automated testing and build.  In addition to discussing the latest developments in build, test, and continuous integration, this section keeps pace with best practice in version control by focusing on Git, increasingly the developer's system of choice. Taken together these three elements: object fundamentals, design principles, and best practice will help the reader develop elegant and rock solid systems. PHP Objects and Patterns: Describes and demonstrates PHP's built-in object-oriented features Breaks 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.
Contents at a Glance; Contents; About the Author; About the Technical Reviewer; Acknowledgments; Introduction; Chapter 1: PHP: Design and Management; The Problem; PHP and Other Languages; About This Book; Objects; Patterns; Practice; What's New in the Fourth Edition; Summary; Chapter 2: Objects; The Accidental Success of PHP Objects; In the Beginning: PHP/FI; Syntactic Sugar: PHP 3; PHP 4 and the Quiet Revolution; Change Embraced: PHP 5; Advocacy and Agnosticism: The Object Debate; Summary; Chapter 3: Object Basics; Classes and Objects; A First Class; A First Object (or Two)
Setting Properties in a ClassWorking with Methods; Creating a Constructor Method; Arguments and Types; Primitive Types; Primitive Types Matter: An Example; Taking the Hint: Object Types; Inheritance; The Inheritance Problem; Working with Inheritance; Constructors and Inheritance; Invoking an Overridden Method; Public, Private, and Protected: Managing Access to Your Classes; Accessor Methods; The ShopProduct Classes; Summary; Chapter 4: Advanced Features; Static Methods and Properties; Constant Properties; Abstract Classes; Interfaces; Traits; A Problem for Traits to Solve
Defining String Values for Your ObjectsCallbacks, Anonymous Functions and Closures; Summary; Chapter 5: Object Tools; PHP and Packages; PHP Packages and Namespaces; Namespaces to the Rescue; Using the File System to Simulate Packages; Naming the PEAR Way; Include Paths; Autoload; The Class and Object Functions; Looking for Classes; Learning About an Object or Class; Getting a Fully Qualified String Reference to a Class; Learning About Methods; Learning About Properties; Learning About Inheritance; Method Invocation; The Reflection API; Getting Started; Time to Roll Up Your Sleeves
Examining a ClassExamining Methods; Examining Method Arguments; Using the Reflection API; Summary; Chapter 6: Objects and Design; Defining Code Design; Object-Oriented and Procedural Programming; Responsibility; Cohesion; Coupling; Orthogonality; Choosing Your Classes; Polymorphism; Encapsulation; Forget How to Do It; Four Signposts; Code Duplication; The Class Who Knew Too Much; The Jack of All Trades; Conditional Statements; The UML; Class Diagrams; Representing Classes; Attributes; Operations; Describing Inheritance and Implementation; Associations; Aggregation and Composition
Describing Use
Includes bibliographical references and index.
Includes index.
PHP Objects Patterns and Practice, Fourth Edition is revised and updated throughout. The book begins by covering PHP's object-oriented features. It introduces key topics including class declaration, inheritance, reflection and much more. These provide the fundamentals of the PHP's support for objects. It also introduces some principles of design. This edition introduces new object relevant features such as traits, reflection extension additions, callable type hinting, improvements to exception handling, and many smaller language enhancements. The next section is devoted to design patterns. These describe common problems and their solutions. The section describes the design principles that make patterns powerful. It 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 build and install using Phing and PEAR. It also explores strategies for automated testing and build.  In addition to discussing the latest developments in build, test, and continuous integration, this section keeps pace with best practice in version control by focusing on Git, increasingly the developer's system of choice. Taken together these three elements: object fundamentals, design principles, and best practice will help the reader develop elegant and rock solid systems. PHP Objects and Patterns: Describes and demonstrates PHP's built-in object-oriented features Breaks 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.
Computer programming.
Software engineering.
Web Development.
Software Engineering/Programming and Operating Systems.