PHPackages                             cloudcreativity/ddd-modules - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. cloudcreativity/ddd-modules

ActiveLibrary[Framework](/categories/framework)

cloudcreativity/ddd-modules
===========================

Modules for domain-driven implementations in PHP.

v5.2.0(4mo ago)84.2k↓17.1%MITPHPPHP ^8.2CI passing

Since Nov 18Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/cloudcreativity/php-ddd-modules)[ Packagist](https://packagist.org/packages/cloudcreativity/ddd-modules)[ Docs](https://github.com/cloudcreativity/ddd-modules)[ RSS](/packages/cloudcreativity-ddd-modules/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (10)Dependencies (9)Versions (36)Used By (0)

Domain Driven Design Modules
============================

[](#domain-driven-design-modules)

**Write highly encapsulated and loosely coupled modules, for domain-centric architecture.**

[Read the docs here.](https://cloudcreativity.github.io/php-ddd-modules)

What is this?
-------------

[](#what-is-this)

You've decided to use domain-driven design (DDD) as your architectural approach. You've engaged with business experts, maybe even held some Event Storming sessions, and can now talk fluently in the ubiquitous language of your domain. Now you need to start writing the domain code.

But how?! 🤔

How should your code be structured? How do you ensure that the bounded context you're writing is entirely encapsulated? How do you enforce architectural boundaries between bounded contexts, and ensure that they are loosely coupled?

Don't worry, we've got you!

This package provides a conceptual approach and a set of tooling to help you write loosely coupled and highly encapsulated bounded contexts - or modules - in PHP.

Whether you are on a journey to split a monolith into a modular monolith, or building out a microservices architecture, this package will help you keep your bounded contexts clean, highly unit-testable, and easy to reason about. It also ensures you have code consistency across all bounded contexts, while allowing plenty of flexibility for each context to be tailored to its specific needs.

Where to Start?
---------------

[](#where-to-start)

This package provides a common PHP toolset for writing domain-centric modules.

**It can be tempting to dive straight into the code - you'll need to resist that temptation!**

The key to achieving highly encapsulated and loosely coupled modules is *how you use the tools in this package*. That is described in the documentation - so ensure you read the docs before using these tools.

[You can read the documentation here.](https://cloudcreativity.github.io/php-ddd-modules)

Installation
------------

[](#installation)

```
composer require cloudcreativity/ddd-modules
```

License
-------

[](#license)

DDD Modules is open-source software licensed under the [MIT License](./LICENSE).

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance82

Actively maintained with recent releases

Popularity29

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~24 days

Total

33

Last Release

133d ago

Major Versions

v0.6.1 → v1.0.0-rc.12024-02-23

v1.2.0 → v2.0.0-rc.12024-05-07

v2.0.0 → v3.0.0-rc.12025-01-12

v3.4.0 → v4.0.02025-09-12

v4.1.0 → v5.0.0-rc.12025-10-09

PHP version history (2 changes)v0.1.0PHP ^8.1

v4.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/ca1ed60931eb66b875b4bad2b1a8a5093c14d5225cf72c3d6c3fd403982ec7cf?d=identicon)[lindyhopchris](/maintainers/lindyhopchris)

---

Top Contributors

[![lindyhopchris](https://avatars.githubusercontent.com/u/4464333?v=4)](https://github.com/lindyhopchris "lindyhopchris (361 commits)")

---

Tags

Domain Driven Designddd

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/cloudcreativity-ddd-modules/health.svg)

```
[![Health](https://phpackages.com/badges/cloudcreativity-ddd-modules/health.svg)](https://phpackages.com/packages/cloudcreativity-ddd-modules)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.7k509.9M17.0k](/packages/laravel-framework)[symfony/symfony

The Symfony PHP framework

31.3k86.3M2.2k](/packages/symfony-symfony)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6939.5M343](/packages/drupal-core-recommended)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19562.3M1.3k](/packages/drupal-core)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
