PHPackages                             domain-driven-laravel/commands - 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. [CLI &amp; Console](/categories/cli)
4. /
5. domain-driven-laravel/commands

ActiveLibrary[CLI &amp; Console](/categories/cli)

domain-driven-laravel/commands
==============================

This package will make artisan commands available but in a domain driven folder structure

0.3.3(4y ago)0851MITPHPPHP ^8.0

Since Dec 29Pushed 4y agoCompare

[ Source](https://github.com/domain-driven-laravel/commands)[ Packagist](https://packagist.org/packages/domain-driven-laravel/commands)[ RSS](/packages/domain-driven-laravel-commands/feed)WikiDiscussions main Synced yesterday

READMEChangelog (3)DependenciesVersions (6)Used By (0)

Laravel support for domain driven design
========================================

[](#laravel-support-for-domain-driven-design)

[![Latest Version on Packagist](https://camo.githubusercontent.com/114e6a36c4bccef5a462b2b7c4594fd0c1c202fb51ab6448d0464f94c2571f39/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646f6d61696e2d64726976656e2d6c61726176656c2f636f6d6d616e64732e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/domain-driven-laravel/commands)[![License](https://camo.githubusercontent.com/bbc9a7cd6b964c4297edc6a18c99dd7885c5e7203d432782fd99a8ef27eeffb3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f646f6d61696e2d64726976656e2d6c61726176656c2f636f6d6d616e64733f7374796c653d666f722d7468652d6261646765)](https://github.com/domain-driven-laravel/commands/blob/main/LICENSE.md)

[![PHP from Packagist](https://camo.githubusercontent.com/0da163c1276d113e352c90708a7656e3112443268ff350bccdac45244f2f12e6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f646f6d61696e2d64726976656e2d6c61726176656c2f636f6d6d616e64733f7374796c653d666c61742d737175617265)](https://packagist.org/packages/domain-driven-laravel/commands)[![Total Downloads](https://camo.githubusercontent.com/e70c96d092e696326c11e40d32551ddb213f2973791179d39199194f7a87df7a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646f6d61696e2d64726976656e2d6c61726176656c2f636f6d6d616e64732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/domain-driven-laravel/commands)

This packages makes it possible to use laravel artisan commands if you are using Laravel in a domain driven approach. We will still support every flag and option possible for the command by following the Laravel documentation. Since everyone is using their own way of Domain Driven Design the defaults are set to my structure but can be easily override using the config. Please check the config section for more information.

This package is also adding a lot of custom commands just to help you to develop Laravel in Domain Driven Approach

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

[](#installation)

```
composer require --dev domain-driven-laravel/commands
```

Configuration
-------------

[](#configuration)

By default, we are following the domain driven approach of my choice. But to make this package usable for everyone we encourage you to publish the config and tweak this package the way you want to use domain driven design.

```
sail artisan vendor:publish --tag=ddd-commands
```

[Default config](https://github.com/domain-driven-laravel/commands/blob/main/src/config/ddd-commands.php)

*Config explanation is added inside the published ddd-commands.php file*

App layer Commands:
-------------------

[](#app-layer-commands)

If you are not using sail please replace "sail" with "php" in commands below

CommandDefault output pathDocumentation`sail artisan make:resource {app_layer} {domain} {name}``src/App/{app_layer}/{domain}/Resources`[Laravel Documentation](https://laravel.com/docs/9.x/eloquent-resources)Domain Commands:
----------------

[](#domain-commands)

If you are not using sail please replace "sail" with "php" in commands below

CommandDefault output pathDocumentation`sail artisan make:model {domain} {name}``src/Domain/{domain}/Models`[Laravel Documentation](https://laravel.com/docs/9.x/eloquent)`sail artisan make:job {domain} {name}``src/Domain/{domain}/Jobs`[Laravel Documentation](https://laravel.com/docs/9.x/queues#creating-jobs)`sail artisan make:mail {domain} {name}``src/Domain/{domain}/Mails`[Laravel Documentation](https://laravel.com/docs/9.x/mail#generating-mailables)`sail artisan make:action {domain} {name}``src/Domain/{domain}/Actions`(None yet)`sail artisan make:dto {domain} {name}``src/Domain/{domain}/DataTransferObjects`(None yet)

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

Total

5

Last Release

1602d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26040589?v=4)[Menno van Hout](/maintainers/mennovanhout)[@mennovanhout](https://github.com/mennovanhout)

---

Top Contributors

[![mennovanhout](https://avatars.githubusercontent.com/u/26040589?v=4)](https://github.com/mennovanhout "mennovanhout (11 commits)")

---

Tags

artisancommandsconsoledomaindrivenlaravellaravel-packagelaravel0frameworklaravel8laravel9

### Embed Badge

![Health badge](/badges/domain-driven-laravel-commands/health.svg)

```
[![Health](https://phpackages.com/badges/domain-driven-laravel-commands/health.svg)](https://phpackages.com/packages/domain-driven-laravel-commands)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71470.5k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20720.9k21](/packages/winbox-args)[tomatophp/filament-artisan

Simple but yet powerful library for running some artisan commands for FilamentPHP

3275.4k1](/packages/tomatophp-filament-artisan)[thettler/laravel-console-toolkit

This Package provides some usefully console features like the attribute syntax for arguments and options, validation, auto ask and casting.

324.1k](/packages/thettler-laravel-console-toolkit)

PHPackages © 2026

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