PHPackages                             t4web/domain - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. t4web/domain

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

t4web/domain
============

Domain Driven Design implementation.

1.2.0(7y ago)01.8k[1 issues](https://github.com/t4web/Domain/issues)3BSD-3-ClausePHPPHP &gt;=5.5.0

Since Nov 3Pushed 7y ago3 watchersCompare

[ Source](https://github.com/t4web/Domain)[ Packagist](https://packagist.org/packages/t4web/domain)[ Docs](https://github.com/t4web/Domain)[ RSS](/packages/t4web-domain/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (3)Versions (18)Used By (3)

Domain
======

[](#domain)

Master: [![Build Status](https://camo.githubusercontent.com/02c7db91668efb985c9c2818982cb34f4e3a5ea3e5e6bf35c7cb1cb8c8ba2d89/68747470733a2f2f7472617669732d63692e6f72672f74347765622f446f6d61696e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/t4web/Domain)[![codecov.io](https://camo.githubusercontent.com/a743340439c96cee78f97ba2f70c2729e757f7b119b2dbe8d11e70e4d0c341fc/687474703a2f2f636f6465636f762e696f2f6769746875622f74347765622f446f6d61696e2f636f7665726167652e7376673f6272616e63683d6d6173746572)](http://codecov.io/github/t4web/Domain?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8537630711beec2e04aa2c59495253259affd4fff1939ce20d715da01eebc2be/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f74347765622f446f6d61696e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/t4web/Domain/?branch=master)[![SensioLabsInsight](https://camo.githubusercontent.com/71d8a66237d1624d63cad2c88055a8ce28caa238a2b4ef3e0df9651abf0e6a1d/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f34343035353132612d646130662d343135632d393763662d6238643465663566396434332f6d696e692e706e67)](https://insight.sensiolabs.com/projects/4405512a-da0f-415c-97cf-b8d4ef5f9d43)[![Dependency Status](https://camo.githubusercontent.com/af18eb8c5bdd7213be308c67ad539b0e7c770df187c9f297d1b41e01674f8110/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3536333838376131653933353634303031613030303230302f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/563887a1e93564001a000200)

Domain Driven Design implementation by [t4web\\domain-interface](https://github.com/t4web/DomainInterface)

Contents
--------

[](#contents)

- [Installation](#instalation)
- [Quick start](#quick-start)

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

[](#installation)

Add this project in your composer.json:

```
"require": {
    "t4web/domain": "~1.1.0"
}
```

Now tell composer to download Domain by running the command:

```
$ php composer.phar update
```

Quick start
-----------

[](#quick-start)

You can use service `Creator`, `Deleter` and `Updater` in you controllers for work with DDD Entity. You can implement `Domain\Infrastructure` for using this services or inject [t4web\\infrastructure](https://github.com/t4web/Infrastructure)

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 87% 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 ~80 days

Recently: every ~292 days

Total

17

Last Release

2609d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/208688?v=4)[max](/maintainers/maxgu)[@maxgu](https://github.com/maxgu)

---

Top Contributors

[![maxgu](https://avatars.githubusercontent.com/u/208688?v=4)](https://github.com/maxgu "maxgu (47 commits)")[![sebaks](https://avatars.githubusercontent.com/u/9897880?v=4)](https://github.com/sebaks "sebaks (7 commits)")

---

Tags

ddd

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/t4web-domain/health.svg)

```
[![Health](https://phpackages.com/badges/t4web-domain/health.svg)](https://phpackages.com/packages/t4web-domain)
```

###  Alternatives

[prooph/service-bus

PHP Enterprise Service Bus Implementation supporting CQRS and DDD

4451.4M32](/packages/prooph-service-bus)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

564576.7k53](/packages/ecotone-ecotone)[prooph/event-sourcing

PHP EventSourcing library

266824.6k18](/packages/prooph-event-sourcing)[phpmentors/domain-kata

Kata for domain models

73448.1k9](/packages/phpmentors-domain-kata)[aura/payload

A Domain Payload implementation.

55381.8k9](/packages/aura-payload)[bruli/php-value-objects

PHP Value objects to use for DDD domains.

43321.9k8](/packages/bruli-php-value-objects)

PHPackages © 2026

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