touhidurabir/laravel-stub-generator
A Laravel package for generating and customizing stub files so Artisan make commands scaffold controllers, models, migrations, and other classes using your own templates. Publish and manage stubs to standardize boilerplate across projects.
make:* commands, module scaffolding, domain-layer templates, API resources, test classes, and project-specific boilerplate generation.Consider it when:
Look elsewhere or defer when:
make commands and published stubs already cover the need.Before adoption, verify Laravel/PHP version compatibility, test coverage, issue responsiveness, release cadence, and whether the package’s abstraction is worth the dependency.
Executive summary: This is a low-cost, MIT-licensed Laravel package for generating class files from reusable templates. It can improve developer productivity, standardize architecture, and reduce repetitive setup work. The license cost is effectively zero; the main investment is a small integration and pilot effort.
Engineering summary: Integrate via Composer, define project-specific stubs, and wrap generation in internal Artisan commands. Keep templates versioned in the repository so generated code follows team conventions. The package is best suited for straightforward scaffolding, not complex schema- or AST-driven generation.
Risk and recommendation: The project is small, so treat it as a tactical productivity tool rather than critical infrastructure. Run a time-boxed pilot with one squad, pin the version, and keep an internal fork/fallback option. Measure success by setup time per class/module, review rework caused by inconsistent scaffolding, onboarding feedback, and convention adherence. If the pilot shows meaningful time savings, adopt for simple scaffolding; revisit if requirements become more complex.
How can I help you explore Laravel packages today?