PHPackages                             toniel/laravel-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. toniel/laravel-ddd

ActiveLibrary[Framework](/categories/framework)

toniel/laravel-ddd
==================

Domain-Driven Design (DDD) scaffolding for Laravel with support for Laravel Actions and Spatie Data

v0.2.1(3mo ago)081MITPHPPHP ^8.1CI failing

Since Jan 12Pushed 3mo agoCompare

[ Source](https://github.com/toniel/laravel-ddd)[ Packagist](https://packagist.org/packages/toniel/laravel-ddd)[ Docs](https://github.com/toniel/laravel-ddd)[ RSS](/packages/toniel-laravel-ddd/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (4)Used By (0)

Laravel DDD
===========

[](#laravel-ddd)

[![Latest Version on Packagist](https://camo.githubusercontent.com/aeaeef62943bdd881a1eece2458454a5b534d612e8fff1517a7dfd5cfb88f336/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f6e69656c2f6c61726176656c2d6464642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/toniel/laravel-ddd)[![GitHub Tests Action Status](https://camo.githubusercontent.com/bad0603ba864ae41b237fce52bd564cd05442ed5ad583b5ccc3bff737d8755b9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f746f6e69656c2f6c61726176656c2d6464642f74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/toniel/laravel-ddd/actions?query=workflow%3Atests+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/2a175da3dc7a5f06afccc6df57a3510cad8e919aa87794007e87beb4759a07ea/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f6e69656c2f6c61726176656c2d6464642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/toniel/laravel-ddd)[![License](https://camo.githubusercontent.com/d9f2943ef0204a6c888cfa31d1dc6d89ff6d97d6cc7988d2ffea6b21c6acf7a4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f746f6e69656c2f6c61726176656c2d6464642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/toniel/laravel-ddd)

A powerful Domain-Driven Design (DDD) scaffolding package for Laravel with support for Laravel Actions and Spatie Data.

> **Note:** This package is currently in early development (v0.x). The API may change before the stable 1.0 release. Feedback and contributions are welcome!

Features
--------

[](#features)

- ✅ **15 comprehensive commands** for complete DDD workflow
- ✅ **Auto-generate** domain structure with a single command
- ✅ **Auto-register** ServiceProvider (Laravel 9-12)
- ✅ **Auto-load** routes, migrations, and views
- ✅ **3 controller types** - Resource, API, Invokable
- ✅ **Laravel Actions** integration (as Job, Controller, or standalone)
- ✅ **Spatie Laravel Data** integration with validation
- ✅ **Inertia.js** page generation (Vue &amp; React with TypeScript)
- ✅ **Blade views** with domain namespace
- ✅ **API Resources** (single &amp; collection)
- ✅ **Form Requests** with validation
- ✅ **Jobs** (queued &amp; synchronous)
- ✅ **Mail classes** with markdown support
- ✅ **Separate folders** for Blade (Views) and Inertia (Pages)
- ✅ **PSR-4 autoloading**
- ✅ **Fully tested** with PHPUnit

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

[](#requirements)

- PHP ^8.1
- Laravel ^9.0 | ^10.0 | ^11.0 | ^12.0

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

[](#installation)

```
composer require toniel/laravel-ddd
php artisan ddd:install
composer dump-autoload
```

Quick Start
-----------

[](#quick-start)

```
# Create a complete domain
php artisan ddd:domain Product
php artisan ddd:model Product Product -mfs
php artisan ddd:controller Product ProductController --api
php artisan ddd:page Product ProductIndex
php artisan migrate
```

Documentation
-------------

[](#documentation)

For complete documentation, please visit [GitHub Repository](https://github.com/toniel/laravel-ddd).

### Available Commands

[](#available-commands)

CommandDescription`ddd:install`Setup DDD structure`ddd:domain {name}`Create new domain`ddd:controller {domain} {name}`Create controller (Resource/API/Invokable)`ddd:model {domain} {name}`Create model with optional migration/factory/seeder`ddd:migration {domain} {name}`Create migration`ddd:factory {domain} {name}`Create factory`ddd:seeder {domain} {name}`Create seeder`ddd:action {domain} {name}`Create Laravel Action`ddd:data {domain} {name}`Create Spatie Data object`ddd:view {domain} {name}`Create Blade view`ddd:page {domain} {name}`Create Inertia page (Vue/React)`ddd:resource {domain} {name}`Create API resource`ddd:request {domain} {name}`Create form request`ddd:job {domain} {name}`Create job`ddd:mail {domain} {name}`Create mail classTesting
-------

[](#testing)

```
composer test
```

Roadmap to 1.0
--------------

[](#roadmap-to-10)

- Community feedback and bug fixes
- Additional generators (Events, Listeners, Policies, etc.)
- More comprehensive test coverage
- Documentation improvements
- Real-world usage validation

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Contributions are welcome! Please feel free to submit a Pull Request.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Toni Listiyo](https://github.com/toniel)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance79

Regular maintenance activity

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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 ~4 days

Total

3

Last Release

112d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/30f3dcba5ea96072a20acd7d6b3043abc5b560cee5d8f3d4cf1f9894dc8b9054?d=identicon)[toniel](/maintainers/toniel)

---

Top Contributors

[![toniel](https://avatars.githubusercontent.com/u/25328278?v=4)](https://github.com/toniel "toniel (2 commits)")

---

Tags

laravelscaffoldinggeneratorDomain Driven Designdddspatie-datalaravel-actions

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/toniel-laravel-ddd/health.svg)

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

###  Alternatives

[laravel/ui

Laravel UI utilities and presets.

2.7k134.9M601](/packages/laravel-ui)[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

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

Docker files for running a basic Laravel application.

1.9k186.9M1.0k](/packages/laravel-sail)[laravel/jetstream

Tailwind scaffolding for the Laravel framework.

4.1k19.8M136](/packages/laravel-jetstream)[laravel/dusk

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

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

Laravel Boost accelerates AI-assisted development by providing the essential context and structure that AI needs to generate high-quality, Laravel-specific code.

3.4k10.6M274](/packages/laravel-boost)

PHPackages © 2026

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