nahid-ferdous/laravel-module-generator
Users, Products). This reduces monolithic codebase bloat and improves maintainability.app/Http/Controllers, app/Models) while extending them via YAML-driven generation. This minimizes deviation from Laravel’s ecosystem.Orders, Payments) with their own services, repositories, and policies.php artisan module:generate), requiring minimal core Laravel modifications. Risk of conflicts with existing codebases is low.Snake_Case vs. camelCase) or project-specific structures (e.g., nested modules).Artisan system, ensuring familiarity for developers and compatibility with Laravel’s task scheduling.model_name) or invalid file paths.Symfony/Yaml with strict parsing) or provide a default template.UserController) may overwrite custom logic.--dry-run) or interactive prompts to confirm overwrites.postGenerate events) or template placeholders for customization.Users module in a monolith vs. a standalone UserService).Settings, Logs) to test YAML templates and generation stability.Products, Orders) where boilerplate is repetitive.Payments) with custom YAML for policies/observers.laravel/framework version constraints in composer.json.app/Http/Controllers → app/Http/Controllers/).fruitcake/laravel-cors (if using API modules).spatie/laravel-permission (for role-based access in generated controllers).app directory layouts).ctype_functions).snake_case for YAML files).templates/module.yaml) with project-specific defaults.composer require nahid-ferdous/laravel-module-generator
config/module-generator.php (if customizable).php artisan module:generate Users --yaml=users.yaml
app/Modules/Users/).composer.json scripts (e.g., post-install-cmd for local dev).policies or observers to templates).RateLimiting) can be applied globally.composer.json to avoid auto-updates:
"nahid-ferdous/laravel-module-generator": "1.0.0"
MODULE_GENERATION.md guide covering:
Jobs to templates).php artisan module:validate users.yaml
#module-generator) for team-specific questions.file_put_contents to .module-cache/).spatie/async).--parallel flag to generate modules concurrently in pipelines.How can I help you explore Laravel packages today?