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

ActiveProject[Framework](/categories/framework)

benatespina/ddd-symfony
=======================

Other approach about the implementation of DDD into Symfony application

1403[1 issues](https://github.com/benatespina/ddd-symfony/issues)[1 PRs](https://github.com/benatespina/ddd-symfony/pulls)PHP

Since May 30Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

DDD Symfony
===========

[](#ddd-symfony)

> Other approach about the implementation of DDD into Symfony application

[![Build Status](https://camo.githubusercontent.com/439ec94459111d9835c3d2757caafee3ed037c44126307dd332a0ab802d4e215/68747470733a2f2f7472617669732d63692e6f72672f62656e6174657370696e612f6464642d73796d666f6e792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/benatespina/ddd-symfony)[![Total Downloads](https://camo.githubusercontent.com/dbf3847db3c477162f6740f3bef3daa12f8fd3de89e0dd7b3ddc0ac014d3e182/68747470733a2f2f706f7365722e707567782e6f72672f62656e6174657370696e612f6464642d73796d666f6e792f646f776e6c6f616473)](https://packagist.org/packages/benatespina/ddd-symfony)[![Latest Stable Version](https://camo.githubusercontent.com/c8b61d1449659651983903694aaa8a224470b323273cad5df69d60ab30b50e0c/68747470733a2f2f706f7365722e707567782e6f72672f62656e6174657370696e612f6464642d73796d666f6e792f762f737461626c652e737667)](https://packagist.org/packages/benatespina/ddd-symfony)[![Latest Unstable Version](https://camo.githubusercontent.com/42029f4ccad924ddcf52b4552e3ad4ea9c6f432e954b772c3780707d6e58cfe4/68747470733a2f2f706f7365722e707567782e6f72672f62656e6174657370696e612f6464642d73796d666f6e792f762f756e737461626c652e737667)](https://packagist.org/packages/benatespina/ddd-symfony)

Why?
----

[](#why)

There are quite a few libraries/projects/bundles in Github that implement DDD into Symfony ecosystem, but I'm not convinced the file/directory structure that they follow. In this repository, I try to expose my own implementation of Domain Driven Development into a Symfony application.

Furthermore, I would like that this repository becomes to the Symfony scaffold for my future projects with this framework, so improvements are welcome! :)

Getting Started
---------------

[](#getting-started)

This repository is a **Symfony** application so, to run requires *[PHP](http://php.net)*, *[Composer](http://getcomposer.org/download)*and any database that project will be support (for the moment *[MySQL](http://dev.mysql.com/downloads/)*).

> NOTE: **parameters.yml**'s `database_user` and `database_password` must have the same values that MySQL configuration.

Install the project's dependencies:

```
$ composer install

```

Configure the web server to serve the `/web` directory of this project.

> This project needs PHP 5.4 or higher to run so, you don't need to configure the web server, because you can use the Symfony command:
>
> ```
> $ php app/console server:run
>
> ```
>
>
>
> And that's all! Now, if you request `http://127.0.0.1:8000/`, you will see your site up and running.

Tests
-----

[](#tests)

This project is completely tested by **BDD methodology** with [PHPSpec](http://www.phpspec.net/):

```
$ bin/phpspec run -fpretty

```

Contributing
------------

[](#contributing)

This project follows some standards. If you want to collaborate, please ensure that your code fulfills these standards before any Pull Request.

```
$ bin/php-cs-fixer fix .
$ bin/php-cs-fixer fix . --config-file .phpspec_cs --fixers=-visibility

```

There is also a policy for contributing to this project. Pull requests must be explained step by step to make the review process easy in order to accept and merge them. New methods or code improvements must come paired with [PHPSpec](http://www.phpspec.net/) tests.

If you would like to contribute it is a good point to follow Symfony contribution standards, so please read the [Contributing Code](http://symfony.com/doc/current/contributing/code/index.html) in the project documentation. If you are submitting a pull request, please follow the guidelines in the [Submitting a Patch](http://symfony.com/doc/current/contributing/code/patches.html#check-list) section and use the [Pull Request Template](http://symfony.com/doc/current/contributing/code/patches.html#make-a-pull-request).

Credits
-------

[](#credits)

Based on:

- beberlei's [Symfony Minimal Distribution](https://github.com/beberlei/symfony-minimal-distribution)
- dddinphp's [Last Whishes](https://github.com/dddinphp/last-wishes)
- dddinphp's [Repository Examples](https://github.com/dddinphp/repository-examples)

Created by **benatespina** - . Copyright (c) 2015

[![License](https://camo.githubusercontent.com/bf0011d6fe3305fa611d6e31b22ff90f892729aa08d6edde7b1d410f1bd50cfe/68747470733a2f2f706f7365722e707567782e6f72672f62656e6174657370696e612f6464642d73796d666f6e792f6c6963656e73652e737667)](https://github.com/benatespina/ddd-symfony/blob/master/LICENSE)

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/06308bfc15d8774c16d36d727f852c2d29ed8d0d6153637384439747776dc658?d=identicon)[benatespina](/maintainers/benatespina)

---

Top Contributors

[![benatespina](https://avatars.githubusercontent.com/u/3951376?v=4)](https://github.com/benatespina "benatespina (3 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

712181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)[laravel/pail

Easily delve into your Laravel application's log files directly from the command line.

91545.3M590](/packages/laravel-pail)

PHPackages © 2026

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