Have a personal or library account? Click to login
Domain-Driven Design in PHP Cover

Domain-Driven Design in PHP

A Highly Practical Guide

Paid access
|Sep 2025
Product purchase options

Real examples written in PHP showcasing DDD Architectural Styles, Tactical Design, and Bounded Context Integration

Key Features

  • 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 principles

Book Description

Domain-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.

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 approaches

Who this book is for

This 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.

Table of Contents

  1. Learn how to correctly design Entities, Value Objects, Services, Domain Events, Aggregates, Factories, Repositories and Application Services with PHP. Explore applying the Hexagonal Architecture withi
  2. Dummy
PDF ISBN: 978-1-78728-846-1
Publisher: Packt Publishing Limited
Copyright owner: © 2017 Packt Publishing Limited
Publication date: 2025
Language: English
Pages: 394