PHPackages                             dbrekelmans/domain-driven-bundle - 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. [Framework](/categories/framework)
4. /
5. dbrekelmans/domain-driven-bundle

AbandonedArchivedSymfony-bundle[Framework](/categories/framework)

dbrekelmans/domain-driven-bundle
================================

Domain driven directory structure configuration for Symfony.

1.2.1(6y ago)427[1 issues](https://github.com/dbrekelmans/domain-driven-bundle/issues)MITPHPPHP ^7.1

Since Sep 17Pushed 6y ago1 watchersCompare

[ Source](https://github.com/dbrekelmans/domain-driven-bundle)[ Packagist](https://packagist.org/packages/dbrekelmans/domain-driven-bundle)[ RSS](/packages/dbrekelmans-domain-driven-bundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (7)Dependencies (8)Versions (9)Used By (0)

Domain Driven Bundle
====================

[](#domain-driven-bundle)

This bundle provides automatic bundle configuration for a domain driven directory structure in Symfony.

Directory structure
-------------------

[](#directory-structure)

The default configuration for this bundle automatically configures the following directory structure:

```
src/
├── /
│   ├── Application
│   ├── Domain
│   │   ├── Entity
│   │   ├── Event
│   │   ├── Factory
│   │   ├── Repository
│   │   ├── Service
│   │   └── ValueObject
│   ├── Infrastructure
│   │   └── config
│   │   │   ├── routes.yaml
│   │   │   └── services.yaml
│   └── Presentation
└── /
    └── ...

```

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

[](#installation)

Install the bundle with composer: `composer require dbrekelmans/domain-driven-bundle`.

### Routing

[](#routing)

Bundle defined routing is never automatically imported in symfony. To automatically import the routing configuration from your context directories, add the following to `config/routes.yaml`:

```
framework:
    resource: '@DomainDrivenBundle/Resources/config/routes.yaml'
```

### Configuration

[](#configuration)

This bundle works out of the box with the directory structure as detailed above. You can configure the directory names and locations in your symfony application in `config/packages/domain_driven.yaml`.

The default configuration is as follows:

```
domain_driven:
    directories:
        context: '%kernel.project_dir%/src'
        application: 'Application'
        domain: 'Domain'
        infrastructure: 'Infrastructure'
        presentation: 'Presentation'
        config: 'config'
    files:
        routes: 'routes'
        services: 'services'
```

Supported bundles
-----------------

[](#supported-bundles)

### symfony/framework-bundle

[](#symfonyframework-bundle)

#### Services

[](#services)

Service configuration files are automatically loaded from `domain_driven.directories.context`/\*/`domain_driven.directories.infrastructure`/`domain_driven.directories.config`/`domain_driven.files.services`.`{yaml,yml,xml,php}`.

#### Routing

[](#routing-1)

Routing configuration files are automatically loaded from `domain_driven.directories.context`/\*/`domain_driven.directories.infrastructure`/`domain_driven.directories.config`/`domain_driven.files.routes`.`{yaml,yml,xml,php}`.

### symfony/twig-bundle

[](#symfonytwig-bundle)

#### Templates

[](#templates)

Template files are automatically configured in `domain_driven.directories.context`/\*/`domain_driven.directories.presentation`/`domain_driven.directories.template`.

Roadmap
-------

[](#roadmap)

### Additional bundles support

[](#additional-bundles-support)

- `symfony/framework` (`symfony/translation`)
- `doctrine/doctrine-migrations-bundle`

### Maker command

[](#maker-command)

Console command to create a new context skeleton based on your config. With default configuration will result in the directory structure as detailed above.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.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

Every ~12 days

Total

7

Last Release

2355d ago

Major Versions

0.1.0 → 1.02019-09-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/8b06eb04697759a60b73f33b31d8d206d75fc4709227ab39d06ba0d36fd7ac7c?d=identicon)[dbrekelmans](/maintainers/dbrekelmans)

---

Top Contributors

[![dbrekelmans](https://avatars.githubusercontent.com/u/9531344?v=4)](https://github.com/dbrekelmans "dbrekelmans (22 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

domain-driven-designsymfony-bundle

### Embed Badge

![Health badge](/badges/dbrekelmans-domain-driven-bundle/health.svg)

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

###  Alternatives

[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k235.4M9.7k](/packages/symfony-framework-bundle)[laravel/framework

The Laravel Framework.

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

The Shopware e-commerce core

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

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

1.3k1.3M152](/packages/sulu-sulu)[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)[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)

PHPackages © 2026

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