Skip to content

Laravel Domain GeneratorBuild Laravel domains with DDD and Clean Architecture

Generate Controllers, DTOs, Services, Repositories, JWT-ready APIs and Public Identifiers with a single Artisan command.

Laravel Domain Generator
Latest ReleaseRelease
LicenseLicense
PHP8.2+
Laravel11 • 12 • 13
CI/CDGitHub Actions
DocumentationVitePress

Built for developers who care about architecture, maintainability and automation.

Quick Start

Install the package.

bash
composer require domain/laravel-domain-generator

Generate your first domain.

bash
php artisan make:domain User

Your first complete Laravel domain is generated in seconds.


Why Laravel Domain Generator?

Instead of manually creating Controllers, DTOs, Services, Repositories and authentication boilerplate, the package generates a scalable Domain Driven Design structure automatically.

Perfect for projects using:

  • Domain Driven Design (DDD)
  • Clean Architecture
  • Repository Pattern
  • REST APIs
  • JWT Authentication
  • Public Identifiers

Trusted Development Workflow

The package follows an automated quality pipeline inspired by Laravel, Filament and Spatie.

FeatureDescription
🚀 Automated ReleasesSemantic versioning with GitHub Releases
📖 Live DocumentationAutomatic deployment with VitePress
🔒 SecurityComposer Audit and CodeQL
⚙️ Code QualityLaravel Pint and PHPStan
📦 Package ValidationComposer validation on every push
🧪 CI PipelineLint, Build and Documentation deployment

Generated Architecture

The package generates a structure similar to this.

text
app/
├── Domain/
│   └── User/
│       ├── DTO/
│       ├── Repositories/
│       └── Service/
├── Http/
│   ├── Controllers/
│   ├── Requests/
│   └── Resources/
└── Models/

Every generated file follows Laravel conventions while keeping business logic isolated inside the Domain layer.


Why developers choose this package

FeatureBenefit
🧱 DDD-firstDomain-oriented architecture from day one.
🔐 JWT ReadyAuthentication endpoints already included.
🆔 Public IDsULID, UUID and UUID32 support.
📦 Generic RepositoryPagination, filters and relationships built in.
🏗️ Clean ArchitectureBusiness logic isolated from HTTP.
🚀 Professional CI/CDGitHub Actions, Releases and automated documentation.

Next Step

Continue with the Installation guide and generate your first production-ready Laravel domain.

→ Next: Installation

Released under the MIT License.