PHPackages                             cbaconnier/laravel-mvc-to-ddd - 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. cbaconnier/laravel-mvc-to-ddd

ActiveLibrary[Framework](/categories/framework)

cbaconnier/laravel-mvc-to-ddd
=============================

Automatically change the default Laravel MVC architecture to DDD architecture

1.2.1(3y ago)201.1k2[1 issues](https://github.com/cbaconnier/laravel-mvc-to-ddd/issues)MITPHPPHP ^8.1

Since Oct 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/cbaconnier/laravel-mvc-to-ddd)[ Packagist](https://packagist.org/packages/cbaconnier/laravel-mvc-to-ddd)[ RSS](/packages/cbaconnier-laravel-mvc-to-ddd/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)Dependencies (3)Versions (12)Used By (0)

Laravel MVC to DDD
==================

[](#laravel-mvc-to-ddd)

Automatically change the default Laravel MVC architecture to a DDD architecture approach.
You can see an example of what it will do on a fresh Laravel application using Livewire, Jetstream and teams feature: [cbaconnier/laravel-mvc-to-ddd-demo](https://github.com/cbaconnier/laravel-mvc-to-ddd-demo)

Disclaimer
----------

[](#disclaimer)

⚠️ I will not be responsible if this package destroys your code. It should **only** be used on a fresh installation.

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

[](#requirements)

- Fresh installation of Laravel 10
- Laravel Fortify *(optional)*
- Laravel Jetstream *(optional)*
- Laravel Pest *(optional)*

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

[](#installation)

You can install the package via composer:

```
composer require cbaconnier/laravel-mvc-to-ddd --dev

```

Usage
-----

[](#usage)

Since the command may be destructive to your application, it's **strongly recommended** to commit before you run this command

```
php artisan ddd:install

```

*Note: You can remove it once it has been installed*

```
composer remove cbaconnier/laravel-mvc-to-ddd

```

Architecture
------------

[](#architecture)

```
.
├── boostrap
├── config
├── database
├── public
├── resources
├── routes
├── src
│   ├── App
│   │   ├── Controllers
│   │   ├── Exceptions
│   │   ├── Providers
│   │   └── View
│   ├── Domain
│   │   ├── Team
│   │   │   ├── Actions
│   │   │   ├── Models
│   │   │   └── Policies
│   │   └── User
│   │       ├── Actions
│   │       ├── Models
│   │       └── Rules
│   └── Support
│       └── Middleware
├── storage
└── tests
    ├── App
    │   ├── ApiTokens
    │   ├── Auth
    │   ├── Profile
    │   └── Teams
    ├── Domain
    └── Support

```

Todo
----

[](#todo)

- Support laravel/ui
- Cleanup the empty folders

Credit
------

[](#credit)

Thanks to [Brent Roose](https://github.com/brendt) for his awesome work on [Laravel Beyond CRUD](https://spatie.be/products/laravel-beyond-crud)on which this architecture is based on.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity70

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~86 days

Recently: every ~95 days

Total

11

Last Release

1230d ago

Major Versions

0.3.0 → 1.0.02022-02-02

PHP version history (4 changes)0.0.1PHP ^7.3

0.1.0PHP ^7.3|^8.0

1.0.0PHP ^8.0

1.2.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/1bee0e4f7b6a50c4f243631fbde06b8697c53dbc4ebb715db587cd7d3a3e0246?d=identicon)[cbaconnier](/maintainers/cbaconnier)

---

Top Contributors

[![cbaconnier](https://avatars.githubusercontent.com/u/4738184?v=4)](https://github.com/cbaconnier "cbaconnier (31 commits)")

---

Tags

ddd-architecturelaravel-mvc

### Embed Badge

![Health badge](/badges/cbaconnier-laravel-mvc-to-ddd/health.svg)

```
[![Health](https://phpackages.com/badges/cbaconnier-laravel-mvc-to-ddd/health.svg)](https://phpackages.com/packages/cbaconnier-laravel-mvc-to-ddd)
```

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M200](/packages/laravel-ai)[laravel/sail

Docker files for running a basic Laravel application.

1.9k205.7M1.3k](/packages/laravel-sail)[illuminate/queue

The Illuminate Queue package.

21332.6M1.6k](/packages/illuminate-queue)[laravel/breeze

Minimal Laravel authentication scaffolding with Blade and Tailwind.

3.0k36.1M164](/packages/laravel-breeze)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M151](/packages/laravel-mcp)[laravel/folio

Page based routing for Laravel.

603583.7k33](/packages/laravel-folio)

PHPackages © 2026

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