
- 394 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Domain-Driven Design in PHP
About this book
Real examples written in PHP showcasing DDD Architectural Styles, Tactical Design, and Bounded Context IntegrationAbout This Book• Focuses on practical code rather than theory• Full of real-world examples that you can apply to your own projects• Shows how to build PHP apps using DDD principlesWho This Book Is ForThis book is for PHP developers who want to apply a DDD mindset to their code. You should have a good understanding of PHP and some knowledge of DDD. This book doesn't dwell on the theory, but instead gives you the code that you need.What You Will Learn• Correctly design all design elements of Domain-Driven Design with PHP• Learn all tactical patterns to achieve a fully worked-out Domain-Driven Design• Apply hexagonal architecture within your application• Integrate bounded contexts in your applications• Use REST and Messaging approachesIn DetailDomain-Driven Design (DDD) has arrived in the PHP community, but for all the talk, there is very little real code. Without being in a training session and with no PHP real examples, learning DDD can be challenging. This book changes all that. It details how to implement tactical DDD patterns and gives full examples of topics such as integrating Bounded Contexts with REST, and DDD messaging strategies. In this book, the authors show you, with tons of details and examples, how to properly design Entities, Value Objects, Services, Domain Events, Aggregates, Factories, Repositories, Services, and Application Services with PHP. They show how to apply Hexagonal Architecture within your application whether you use an open source framework or your own.Style and approachThis highly practical book shows developers how to apply domain-driven design principles to PHP. It is full of solid code examples to work through.
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
Aggregates
Introduction
Key Concepts
ACID
Transactions
UPDATE accounts
SET balance = balance - 100.00
WHERE name = 'Alice';
UPDATE branches
SET balance = balance - 100.00
WHERE name = (SELECT branch_name FROM accounts WHERE name ='Alice');
UPDATE accounts
SET balance = balance + 100.00
WHERE name = 'Bob';
UPDATE branches
SET balance = balance + 100.00
WHERE name = (SELECT branch_name FROM accounts WHERE name ='Bob');
BEGIN;
UPDATE accou...
Table of contents
- Title Page
- Copyright
- Credits
- Foreword
- About the Authors
- Acknowledgments
- www.PacktPub.com
- Customer Feedback
- Dedication
- Preface
- Getting Started with Domain-Driven Design
- Architectural Styles
- Value Objects
- Entities
- Services
- Domain-Events
- Modules
- Aggregates
- Factories
- Repositories
- Application
- Integrating Bounded Contexts
- Hexagonal Architecture with PHP
- Bibliography
- The End