PHPackages                             colvin/common-domain-php - 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. colvin/common-domain-php

ActiveLibrary

colvin/common-domain-php
========================

Domain structure for shared projects

v0.1.1(4y ago)31.3k11MITPHPPHP ^8.0

Since Sep 29Pushed 4y ago7 watchersCompare

[ Source](https://github.com/TheColvinCo/common-domain-php)[ Packagist](https://packagist.org/packages/colvin/common-domain-php)[ RSS](/packages/colvin-common-domain-php/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (1)

Colvin Common Domain 💐 🪴
========================

[](#colvin-common-domain--)

Colvin Common Domain is a brand-new composer package 📦 where you could find Core objects that could help you.

Table of Contents
-----------------

[](#table-of-contents)

- [Colvin Common Domain 💐 🪴](#colvin-common-domain------)
    - [Installation ⚒️](#installation-%EF%B8%8F)
    - [Usage 👩‍💻](#usage-)
        - [Application](#application)
        - [Domain 🌼](#domain-)
        - [Infrastructure 🏗️](#infrastructure-%EF%B8%8F)
    - [Contributing 🤝](#contributing-)

Installation ⚒️
---------------

[](#installation-️)

Simply run `composer req colvin/common-domain-php`. Note you have to be at least in PHP 8 (we are modern people, yup).

Usage 👩‍💻
---------

[](#usage-‍)

This package has multiple tools which can be useful. We have taken advantage of the **Hexagonal Architecture** to organise it, so we have the three typical folders: **Application, Domain and Infrastructure**:

### Application

[](#application)

Here we will find the two definitions of Command and Query, used in architectures like CQRS. They are just abstract implementations of the `ActionMessage` abstract class. We will cover it soon.

### Domain 🌼

[](#domain-)

Here we'll find the big stuff. We have `Exception`, `Message` and `Model` Folders.

- Exceptions (surprise 🙀🙀) store exception definitions.
- In `Message` we find the definitions of:
    - ActionMessage (used in queries and commands, they are "actions").
    - AggregateMessage. This is the big boy, used to model **Domain Events**.
    - Message. The mother of all. It ensures all messages have the same structure.
- In `Model` we can find different useful Value Objects, and an interesting `AggregateRoot`. This will be used in our future entities, and it has the ability to record Domain Events.
- `DomainEvent`. There is not much to explain here 🦫

### Infrastructure 🏗️

[](#infrastructure-️)

As in every Infrastructure HA folder, here we try to manage the relation with external dependencies. There are useful classes, for example; to serialize and deserialize messages following the JSON Api Standard.

Contributing 🤝
--------------

[](#contributing-)

Pull requests are more than welcome!. For major changes, please open an issue first to discuss what you would like to change.

Please remember to update tests as appropriate.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 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 ~5 days

Total

2

Last Release

1687d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e62124e8a85338f374da680e274964b63a519c07461dec9b6e95efbca03dfe6?d=identicon)[Aaronidas](/maintainers/Aaronidas)

![](https://www.gravatar.com/avatar/19fd72cc95b31f3d32b35f2caeae4353bddff3fb17aa8f3bd9df4ead23ecb15b?d=identicon)[mdarnaculleta](/maintainers/mdarnaculleta)

![](https://www.gravatar.com/avatar/74d4812c74b1d70847428ddbe7193743e970baa901d20814938343d64188aff0?d=identicon)[jlopezxs](/maintainers/jlopezxs)

---

Top Contributors

[![AaronBernabeu](https://avatars.githubusercontent.com/u/3294776?v=4)](https://github.com/AaronBernabeu "AaronBernabeu (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/colvin-common-domain-php/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

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

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

8.4k5.6M651](/packages/sylius-sylius)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k16.7M310](/packages/easycorp-easyadmin-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[tempest/framework

The PHP framework that gets out of your way.

2.1k23.1k9](/packages/tempest-framework)[web-auth/webauthn-lib

FIDO2/Webauthn Support For PHP

1225.3M72](/packages/web-auth-webauthn-lib)

PHPackages © 2026

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