https://github.com/thejano/laravel-domain-driven-design
Helps to use domain driven design within Laravel
https://github.com/thejano/laravel-domain-driven-design
ddd ddd-architecture ddd-patterns design design-patterns domain-driven-design laravel php
Last synced: 6 months ago
JSON representation
Helps to use domain driven design within Laravel
- Host: GitHub
- URL: https://github.com/thejano/laravel-domain-driven-design
- Owner: thejano
- License: mit
- Created: 2023-02-23T09:12:54.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-09-07T20:31:02.000Z (11 months ago)
- Last Synced: 2025-10-11T05:03:02.878Z (10 months ago)
- Topics: ddd, ddd-architecture, ddd-patterns, design, design-patterns, domain-driven-design, laravel, php
- Language: PHP
- Homepage: https://ddd.thejano.com
- Size: 132 KB
- Stars: 151
- Watchers: 4
- Forks: 18
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel Domain Driven Design
[](https://packagist.org/packages/thejano/laravel-domain-driven-design)
[](https://github.com/thejano/laravel-domain-driven-design/actions/workflows/piny.yml)
[](https://packagist.org/packages/thejano/laravel-domain-driven-design)
[Domain-Driven Design](https://en.wikipedia.org/wiki/Domain-driven_design) (DDD) is a software development approach that emphasizes understanding and modeling the business domain. The goal is to create software that aligns with the needs of the business and is easier to maintain. DDD uses concepts such as bounded contexts, entity modeling, and ubiquitous language to create robust and maintainable software architecture.
This package helps you to create domains within your Laravel application. It provides a set of artisan command to generate Models, Controllers, Actions, Services and more.
You create an Album domain just by running
```shell
php artisan d:create Album
```
It would create a domain inside `app` folder under `Domain/Album` folder.
Also, it would generate the following scaffold:
```shell
|____app
| |____ Domain
| | |____ Album
| | | |____ Models
| | | |____ Exceptions
| | | |____ Policies
| | | |____ Http
| | | | |____ Middleware
| | | | |____ Resources
| | | | |____ Requests
| | | | |____ Controllers
| | | |____ Actions
| | | |____ Jobs
| | | |____ Events
| | | |____ Data
| | | |____ Observers
| | | |____ Listeners
| | | |____ Services
```
## Installation and Usage
Please, check the documentation below to install and use the package
https://ddd.thejano.com
### Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
### Security
If you discover any security related issues, please email drpshtiwan@thejano.com instead of using the issue tracker.
## Credits
- [Dr Pshtiwan](https://github.com/drpshtiwan)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.