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(5mo ago)0122MITPHPPHP ^8.1CI failing

Since Jan 12Pushed 5mo 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 today

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

33

—

LowBetter than 72% of packages

Maintenance71

Regular maintenance activity

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

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

165d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25328278?v=4)[Toni Listiyo](/maintainers/toniel)[@toniel](https://github.com/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/sail

Docker files for running a basic Laravel application.

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

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M151](/packages/laravel-mcp)[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.5k21.5M595](/packages/laravel-boost)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.6k29.9M146](/packages/laravel-cashier)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M132](/packages/laravel-pulse)

PHPackages © 2026

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