PHPackages                             cohete/ddd - 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. cohete/ddd

ActiveLibrary

cohete/ddd
==========

Opinionated DDD building blocks for Cohete

v0.1.0(1mo ago)00MITPHPPHP &gt;=8.2CI passing

Since Mar 11Pushed 1mo agoCompare

[ Source](https://github.com/pascualmg/cohete-ddd)[ Packagist](https://packagist.org/packages/cohete/ddd)[ RSS](/packages/cohete-ddd/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (7)Used By (0)

cohete/ddd
==========

[](#coheteddd)

[![CI](https://github.com/pascualmg/cohete-ddd/actions/workflows/ci.yml/badge.svg)](https://github.com/pascualmg/cohete-ddd/actions/workflows/ci.yml)

Opinionated DDD building blocks for [Cohete](https://github.com/pascualmg/cohete-framework).

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

[](#installation)

```
composer require cohete/ddd
```

Value Objects
-------------

[](#value-objects)

- **StringValueObject** - Base class for string VOs with validation (maxLength, notNull, notEmpty)
- **UuidValueObject** - UUID v4 via ramsey/uuid
- **AtomDateValueObject** - Dates in ATOM format

### Example: custom Value Object

[](#example-custom-value-object)

```
use Cohete\DDD\ValueObject\StringValueObject;

class UserEmail extends StringValueObject
{
    public static function from(?string $value = null): static
    {
        static::assertNotNull($value);
        static::assertNotEmpty($value);
        static::assertMaxLength(255, $value);

        if (!filter_var($value, FILTER_VALIDATE_EMAIL)) {
            throw new \InvalidArgumentException("Invalid email: $value");
        }

        return parent::from($value);
    }
}
```

License
-------

[](#license)

MIT

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance89

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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

Unknown

Total

1

Last Release

58d ago

### Community

Maintainers

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

---

Top Contributors

[![pascualmg](https://avatars.githubusercontent.com/u/11436672?v=4)](https://github.com/pascualmg "pascualmg (6 commits)")[![google-labs-jules[bot]](https://avatars.githubusercontent.com/in/842251?v=4)](https://github.com/google-labs-jules[bot] "google-labs-jules[bot] (3 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k84.2M224](/packages/laravel-horizon)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M648](/packages/sylius-sylius)[stancl/tenancy

Automatic multi-tenancy for your Laravel application.

4.3k6.6M40](/packages/stancl-tenancy)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k12.2M45](/packages/knuckleswtf-scribe)[google/cloud

Google Cloud Client Library

1.2k16.2M54](/packages/google-cloud)

PHPackages © 2026

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