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)0831MITPHPPHP ^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 1mo ago

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

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

1553d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/698dceecea3cbfa86cabe893aca2201cb27eed9b83fe3d3855840dd5d57ae6d7?d=identicon)[mennovanhout](/maintainers/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

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)

PHPackages © 2026

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