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

ActiveLibrary

siestacat/ddd-manager
=====================

Ddd manager

v1.0.9(5mo ago)035Apache-2.0PHPPHP &gt;=8.1

Since Oct 30Pushed 5mo agoCompare

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

READMEChangelogDependencies (2)Versions (12)Used By (0)

DDD Manager
===========

[](#ddd-manager)

This is a personal and experimental project. Use with caution.

Definition
----------

[](#definition)

### BoundedContext

[](#boundedcontext)

Folder that have .dddcontext file

BoundedContext must be in `%project_dir%/src/BoundedContexts`

For example:

- `src/BoundedContexts/Auth/User/.dddcontext`
- `src/BoundedContexts/Auth/UserHistory/.dddcontext`
- `src/BoundedContexts/Post/.dddcontext`

Doctrine ORM Structure Example
------------------------------

[](#doctrine-orm-structure-example)

**Mapping**

`src/BoundedContexts/Auth/User/Infrastructure/Framework/Doctrine/Orm/Mapping/User/User.orm.xml`

`User.php` entity must exists in `src/BoundedContexts/Auth/User/Domain/Entity`

**Migrations**

Executing `php bin/console doctrine:migrations:diff:ddd` all migrations related to the bounded contexts entities will be generated on:

`src/BoundedContexts/Auth/User/Infrastructure/Framework/Doctrine/Orm/Migrations`

**Types (Value objects)**

`src/BoundedContexts/Auth/User/Infrastructure/Framework/Doctrine/Orm/Type/types.yaml`

Yaml file example:

`user_is_active: App\BoundedContexts\Auth\User\Infrastructure\Framework\Doctrine\Orm\Type\UserIsActiveType`

Symfony Structure Example
-------------------------

[](#symfony-structure-example)

**Bundles**

`src/BoundedContexts/Auth/User/Infrastructure/Framework/Symfony/config/bundles.php`

**Services and packages**

`src/BoundedContexts/Auth/User/Infrastructure/Framework/Symfony/config/services.yaml``src/BoundedContexts/Auth/User/Infrastructure/Framework/Symfony/config/services.php``src/BoundedContexts/Auth/User/Infrastructure/Framework/Symfony/config/services_dev.yaml``src/BoundedContexts/Auth/User/Infrastructure/Framework/Symfony/config/services_prod.yaml``src/BoundedContexts/Auth/User/Infrastructure/Framework/Symfony/config/services_dev.php``src/BoundedContexts/Auth/User/Infrastructure/Framework/Symfony/config/services_prod.php``src/BoundedContexts/Auth/User/Infrastructure/Framework/Symfony/config/services/my_services.yaml``src/BoundedContexts/Auth/User/Infrastructure/Framework/Symfony/config/services/my_services.php``src/BoundedContexts/Auth/User/Infrastructure/Framework/Symfony/config/services/packages/package_name.yaml``src/BoundedContexts/Auth/User/Infrastructure/Framework/Symfony/config/services/packages/package_name.php``src/BoundedContexts/Auth/User/Infrastructure/Framework/Symfony/config/services/packages/dev/package_name.yaml``src/BoundedContexts/Auth/User/Infrastructure/Framework/Symfony/config/services/packages/dev/package_name.php``src/BoundedContexts/Auth/User/Infrastructure/Framework/Symfony/config/services/packages/prod/package_name.yaml``src/BoundedContexts/Auth/User/Infrastructure/Framework/Symfony/config/services/packages/prod/package_name.php`

**Twig templates**

Templates can be imported with `@` as a prefix with snake case separated by dot of bounded context name, for example: `@auth.user/file.html.twig`

`src/BoundedContexts/Auth/User/Infrastructure/Framework/Symfony/templates`

**Translations**

*Only 1 messages translation domain can exists across all bounded contexts*

`src/BoundedContexts/Auth/User/Infrastructure/Framework/Symfony/translations/messages.yaml`

*If the domain is not message, must be snake case separated by dot of bounded context name, see command debug:ddd:bounded-contexts*

`src/BoundedContexts/Auth/User/Infrastructure/Framework/Symfony/translations/auth.user.yaml`

Allowed files extensions, otherwise the file will be ignored

- php
- yml
- yaml
- xlf
- xliff
- po
- mo
- ts
- csv
- res
- dat
- ini
- json

Usage
-----

[](#usage)

```
composer require siestacat/ddd-manager
```

Copy files from `recipes` to project dir

Docker Usage
------------

[](#docker-usage)

### Build the image

[](#build-the-image)

```
docker build -t ddd-manager .
```

### Run PHPUnit tests

[](#run-phpunit-tests)

```
docker run --rm -it ddd-manager ./vendor/bin/phpunit
```

###  Health Score

36

—

LowBetter than 81% of packages

Maintenance74

Regular maintenance activity

Popularity7

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity50

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

Total

10

Last Release

177d ago

PHP version history (2 changes)v1.0.0PHP &gt;=8.4

v1.0.6PHP &gt;=8.1

### Community

Maintainers

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[jason-munro/cypht

Lightweight Open Source webmail written in PHP and JavaScript

1.5k146.0k](/packages/jason-munro-cypht)[magento/magento2-functional-testing-framework

Magento2 Functional Testing Framework

15511.5M30](/packages/magento-magento2-functional-testing-framework)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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