Automatically change the default Laravel MVC architecture to DDD architecture
cbaconnier/laravel-mvc-to-ddd is a Laravel package for automatically change the default laravel mvc architecture to ddd architecture.
It currently has 20 GitHub stars and 1.055 downloads on Packagist (latest version 1.2.1).
Install it with composer require cbaconnier/laravel-mvc-to-ddd.
Discover more Laravel packages by cbaconnier
or browse all Laravel packages to compare alternatives.
Last updated
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
⚠️ I will not be responsible if this package destroys your code. It should only be used on a fresh installation.
You can install the package via composer:
composer require cbaconnier/laravel-mvc-to-ddd --dev
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
.
├── 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
Thanks to Brent Roose for his awesome work on Laravel Beyond CRUD on which this architecture is based on.