foxws / laravel-ddd
Domain Driven Design scaffolding for Laravel projects
Fund package maintenance!
Requires
- php: ^8.4
- illuminate/support: ^13.0
Requires (Dev)
- larastan/larastan: ^3.9
- laravel/pao: ^1.0
- laravel/pint: ^1.29
- orchestra/testbench: ^11.0
- pestphp/pest: ^5.0
- pestphp/pest-plugin-laravel: ^5.0
- pestphp/pest-plugin-type-coverage: ^5.0.2
- phpstan/extension-installer: ^1.4
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Laravel DDD
Domain Driven Design scaffolding for Laravel projects
Installation
You can install the package via Composer:
composer require foxws/laravel-ddd
You may publish the package's config file:
php artisan vendor:publish --tag="ddd-config"
Tip
Let your AI agent do the hard parts. This package ships a Laravel Boost skill, laravel-ddd-development, that teaches your agent how to install, configure and use Laravel DDD. Install Boost and select the skill when prompted:
composer require laravel/boost --dev php artisan boost:install
Already using Boost? Run php artisan boost:update --discover to pick up the skill. Then just ask, for example: "Set up Laravel DDD and create a CreateInvoice action in a Billing domain."
Usage
Install the DDD layer structure, then generate classes into it:
php artisan ddd:install php artisan ddd:make CreateInvoice --type=action --domain=Billing
See the documentation for the full list of layers, generator types, and how to customize stubs and subfolders.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Thank you for considering contributing to Laravel DDD! Please review our contributing guide to get started.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
Laravel DDD is open-sourced software licensed under the MIT license.