Download the PHP package domain/laravel-domain-generator without Composer
On this page you can find all versions of the php package domain/laravel-domain-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download domain/laravel-domain-generator
More information about domain/laravel-domain-generator
Files in domain/laravel-domain-generator
Package laravel-domain-generator
Short Description Pacote Laravel para geração automática de estruturas por domínio utilizando DDD, DTOs, Services, Repositories, Controllers e Form Requests
License MIT
Informations about the package laravel-domain-generator
Laravel Domain Generator
Generate Laravel Domains using DDD and Clean Architecture.
Automate Controllers, DTOs, Services, Repositories, Resources, JWT authentication and public identifiers with a single Artisan command.
   
    
Why Laravel Domain Generator?
Building Laravel applications usually means repeating the same boilerplate over and over.
Instead of manually creating Controllers, Services, DTOs, Repositories and wiring everything together, this package generates an organized Domain structure following DDD and Clean Architecture from day one.
Generated structure:
Features
- Domain Driven Design structure
- Clean Architecture
- Automatic DTO conversion
- Repository Pattern
- API Resources
- Pagination
- JWT Authentication
- Public identifiers (ULID, UUID and UUID32)
- Safe relationship loading (
with=) - Automatic filtering
- GitHub Actions
- Professional VitePress documentation
Quick Start
Install the package:
Generate the JWT secret:
Create your first domain:
Architecture
The package keeps responsibilities separated.
| Layer | Responsibility |
|---|---|
| Controller | HTTP |
| FormRequest | Validation |
| DTO | Data transport |
| Service | Business rules |
| Repository | Persistence |
| Model | Database |
| Resource | HTTP response |
JWT Authentication
Built-in endpoints:
| Method | Endpoint |
|---|---|
| POST | /api/auth/login |
| GET | /api/auth/me |
| POST | /api/auth/refresh |
| POST | /api/auth/logout |
Public Identifiers
The package supports:
| Strategy | Size | Sortable |
|---|---|---|
| ULID | 26 | Yes |
| UUID | 36 | No |
| UUID32 | 32 | No |
Example:
Quality Gates
This project follows an automated quality pipeline inspired by projects like Laravel, Filament and Spatie.
| Pipeline | Purpose |
|---|---|
| CI • Lint | Laravel Pint + PSR-4 validation |
| CI • PHPStan | Static analysis |
| CI • Tests | Multi-version testing |
| Security • Audit | Composer vulnerability scan |
| Security • CodeQL | GitHub security analysis |
| Deploy • VitePress | Documentation deployment |
| Release | Automatic semantic releases |
Pipeline overview:
Every push to master automatically:
- formats the code with Laravel Pint;
- validates PSR-4 namespaces;
- runs PHPStan;
- executes the test suite;
- performs security analysis;
- creates a GitHub Release;
- publishes the documentation.
Documentation
The complete documentation is available at:
It includes:
- Installation
- DDD architecture
make:domain- DTOs
- AbstractController
- AbstractService
- AbstractRepository
- JWT
- Hash (ULID/UUID)
- Resources
- Troubleshooting
- Complete CRUD examples
Roadmap
- Automatic Resource generation
- Store/Update DTO generation
- Domain Events
- Value Objects
- Policies
- Multi-tenancy
- Cache layer
- Integration Smoke Tests
Contributing
Contributions are welcome.
Please read:
- Pull Request Template
- Issue Templates
- Coding Standards (Laravel Pint + PHPStan)
before opening a Pull Request.
License
Released under the MIT License.
All versions of laravel-domain-generator with dependencies
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
php-open-source-saver/jwt-auth Version ^2.1