PHPackages                             thetis20/notification-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. [Mail &amp; Notifications](/categories/mail)
4. /
5. thetis20/notification-domain

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

thetis20/notification-domain
============================

domain of notification application

1.0.1(1y ago)03MITPHPPHP &gt;=8.3.12

Since Jan 1Pushed 1y ago1 watchersCompare

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

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

Notification
============

[](#notification)

Context
-------

[](#context)

This project is an application designed to explore concepts such as Clean Architecture, Test-Driven Development (TDD), Domain-Driven Design (DDD), and Hexagonal Architecture. These approaches aim to produce maintainable, scalable, and testable code.

Technologies
------------

[](#technologies)

- **PHP** : Programming language used for business logic.
- **Composer** : Dependency manager for PHP.
- **PHPUnit** : Tool for unit testing.
- **Docker** : Containerization platform to simplify application execution and isolation.

Key Concepts
------------

[](#key-concepts)

### 1. Clean Architecture

[](#1-clean-architecture)

Clean Architecture is a set of principles designed to organize code in a way that it is independent of frameworks, databases, and user interfaces. It enables:

- Separation of concerns.
- Easier testing.
- More comprehensible and maintainable code.

### 2. Test-Driven Development (TDD)

[](#2-test-driven-development-tdd)

TDD is a development methodology based on writing tests before coding the functionality. The process follows three steps:

- Write a test that fails.
- Write the minimum code necessary to make the test pass.
- Refactor the code while ensuring the tests still pass.

TDD improves code quality and reduces the number of bugs.

### 3. Domain-Driven Design (DDD)

[](#3-domain-driven-design-ddd)

DDD is a software design approach focusing on the business domain. It encourages collaboration between developers and domain experts to:

- Model the domain effectively.
- Use a common language.
- Structure code around business concepts.

### 4. Hexagonal Architecture

[](#4-hexagonal-architecture)

Hexagonal Architecture, or Ports and Adapters Architecture, separates the core application logic from external interactions (UI, databases, APIs, etc.). It allows:

- Easier testing of the application core.
- Replacement of external components without impacting business logic.
- Simplified application evolution.

Installation and Usage
----------------------

[](#installation-and-usage)

This project composer

1. Clone the repository:

    ```
    git clone git@github.com:thetis20/notification-domain.git
    cd notification-domain
    ```
2. Install composer dependencies:

    ```
    composer install
    ```
3. Run tests

    ```
    composer run-script tests
    ```

Class Diagram
-------------

[](#class-diagram)

 ```
---
title: Notification Domain
---
classDiagram
   class User {
      -string id
      -string usualName
      -Email email
      -?Phone phone
      +getId(): string
      +getUsualName(): string
      +getEmail(): Email
      +getPhone(): ?Phone
      +jsonSerialize(): array
   }
   class Notification {
      -Uuid id
      -array to
      -string key
      -DateTime date
      -array params
      -int status
      +getId(): Uuid
      +getTo(): array
      +getKey(): string
      +getDate(): DateTime
      +getParams(): array
      +getStatus(): int
      +jsonSerialize(): array
   }
```

      Loading License
-------

[](#license)

This project is licensed under the MIT License. Please refer to the LICENSE file for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance41

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

Total

2

Last Release

496d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6105a931f5bfa14b078d873b4ed6f4a2a6f2a1df58a5bb4cc155ae224ea62fe2?d=identicon)[thetis20](/maintainers/thetis20)

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[symfony/serializer-pack

A pack for the Symfony serializer

1.1k28.2M221](/packages/symfony-serializer-pack)[jason-munro/cypht

Lightweight Open Source webmail written in PHP and JavaScript

1.5k146.0k](/packages/jason-munro-cypht)[symfony/ai-platform

PHP library for interacting with AI platform provider.

51927.7k136](/packages/symfony-ai-platform)[web-auth/webauthn-lib

FIDO2/Webauthn Support For PHP

1195.3M72](/packages/web-auth-webauthn-lib)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

50570.7k1](/packages/web-auth-webauthn-framework)[jolicode/castor

A lightweight and modern task runner. Automate everything. In PHP.

53541.0k3](/packages/jolicode-castor)

PHPackages © 2026

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