PHPackages                             tbbc/symfony-cqrs-edition - 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. tbbc/symfony-cqrs-edition

ActiveProject[Framework](/categories/framework)

tbbc/symfony-cqrs-edition
=========================

The Big Brains Company "Symfony CQRS Edition"

1069419[2 issues](https://github.com/TheBigBrainsCompany/symfony-cqrs-edition/issues)[1 PRs](https://github.com/TheBigBrainsCompany/symfony-cqrs-edition/pulls)PHP

Since Apr 10Pushed 11y ago20 watchersCompare

[ Source](https://github.com/TheBigBrainsCompany/symfony-cqrs-edition)[ Packagist](https://packagist.org/packages/tbbc/symfony-cqrs-edition)[ RSS](/packages/tbbc-symfony-cqrs-edition/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

The Big Brains Company - Symfony CQRS Edition
=============================================

[](#the-big-brains-company---symfony-cqrs-edition)

A default structure for CQRS oriented project and Symfony.

What's inside?
--------------

[](#whats-inside)

**TODO**

Requirements
------------

[](#requirements)

- PHP &gt;= 5.3.3

1. Quick start
--------------

[](#1-quick-start)

### 1.1 Install composer if it is not installed yet

[](#11-install-composer-if-it-is-not-installed-yet)

Composer [installation instructions](https://getcomposer.org/doc/00-intro.md#installation-nix)

### 1.2 Create a new project with composer

[](#12-create-a-new-project-with-composer)

```
$ php composer.phar create-project -s dev tbbc/symfony-cqrs-edition path/to/install dev-master
```

Composer will install the project and all its dependencies under the `path/to/install` directory.

**Note 1**: *Because it is not stable yet, you have to explicity set the `dev-master` version.*

### 1.3 Visit the project URL

[](#13-visit-the-project-url)

After composer installation is complete, visit the url to the project in your brower for further instructions!

2. Overview
-----------

[](#2-overview)

### 2.1 The project structure

[](#21-the-project-structure)

DDD (Domain Driven Development) and CQRS (Command/Query Responsability Segregation) aims to focus on the domain (ie: your business).

This project structure tries to properly separate the technical aspects and the actual business logic.

Based on previous experiments, POO paradigms, DDD best practices, we have defined three main "layers" for an application.

#### 2.1.1 The Domain

[](#211-the-domain)

It gathers the actual business logic, business rules, free of any framework implementations

This layers is splitted in two parts, as defined by the CQRS abbreviation.

The Command layer is somewhat the write layer, in charge of updating the state of your domain, while the Query is in charge of Reporting.

#### 2.1.2 The Infrastructure

[](#212-the-infrastructure)

Infrastructure relates to any components that are not part of your domain and which interchangeables. This can be a Doctrine/DBAL repository, a Mailer service, or any third parties adapter. This is also here that we do the glue between the domain and any MVC framework.

#### 2.1.3 The UI

[](#213-the-ui)

CQRS/DDD mainly focus on a "Task Based UI", this means tasks are often mapped to actual command of your domain. UI, User Interface, is usually a website with HTML views, but it is also any CLI commands or even a REST API.

#### 2.1.4 Default structure

[](#214-default-structure)

```
src
└── Acme
    └── Task
        ├── Command
        ├── Domain
        │   ├── Event
        │   ├── Handler
        │   ├── Model
        │   └── Repository
        ├── Infrastructure
        │   ├── InfrastructureBundle
        │   └── Persistence
        ├── Query
        │   ├── EventHandler
        │   ├── Repository
        │   └── ViewModel
        └── Ui
            ├── CliBundle
            ├── SharedBundle
            └── WebBundle

```

In the Symfony CQRS Edition, the InfrastructureBundle is the heart of the application. It is the glue between your domain and the actual Symfony framework.

The UI layer contains all the Controllers, as well as views, themes, or any configuration which will be passed through container parameters to your Domain.

**Note**: *the term Command may apply to both CLI Command and Command in **C**QRS, it should not be confused as it refers to two different concepts*

3. Getting started with CQRS
----------------------------

[](#3-getting-started-with-cqrs)

**TODO**

4. Contributing
---------------

[](#4-contributing)

1. Take a look at the [list of issues](http://github.com/TheBigBrainsCompany/symfony-cqrs-edition).
2. Fork
3. Write a test (for either new feature or bug)
4. Make a PR

5. Authors
----------

[](#5-authors)

- Boris Guéry -  - [@borisguery](http://twitter.com/borisguery) -
- Benjamin Dulau -  - [@delendial](http://twitter.com/delendial) -

6. License
----------

[](#6-license)

`The Big Brains Company - Symfony CQRS Edition` is licensed under the MIT License - see the LICENSE file for details

[![The Big Brains Company - Logo](https://camo.githubusercontent.com/1f1a60532f95341dbae519e720db83ffb265a06669dba5da82ca5d6f728180be/687474703a2f2f746262632d76616c69642e746865626967627261696e73636f6d70616e792e636f6d2f6173736574732f696d616765732f6c6f676f2d746262632e706e67)](http://thebigbrainscompany.com)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 56.3% 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/febdd5f0b1d1f3597b286418ae1da4f57ff6f31624911dc27f29782fa5995eb8?d=identicon)[tbbc](/maintainers/tbbc)

---

Top Contributors

[![borisguery](https://avatars.githubusercontent.com/u/345495?v=4)](https://github.com/borisguery "borisguery (18 commits)")[![benjamindulau](https://avatars.githubusercontent.com/u/430689?v=4)](https://github.com/benjamindulau "benjamindulau (12 commits)")[![armetiz](https://avatars.githubusercontent.com/u/1119250?v=4)](https://github.com/armetiz "armetiz (2 commits)")

### Embed Badge

![Health badge](/badges/tbbc-symfony-cqrs-edition/health.svg)

```
[![Health](https://phpackages.com/badges/tbbc-symfony-cqrs-edition/health.svg)](https://phpackages.com/packages/tbbc-symfony-cqrs-edition)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[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.

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

A simple API extension for DateTime.

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

PHPackages © 2026

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