theranken / laravel-sr-generator
A package to generate service and repository classes for Laravel 10-13 applications
v1.1.0
2026-06-03 20:34 UTC
Requires
- php: ^8.1
- illuminate/console: ^10.0|^11.0|^12.0|^13.0
- illuminate/support: ^10.0|^11.0|^12.0|^13.0
Requires (Dev)
- orchestra/testbench: ^8.0|^9.0|^10.0|^11.0
README
Hey there, Laravel enthusiast! Are you tired of manually creating services and repositories? Well, say hello to your new coding buddy - the Laravel Service Repository Generator!
A package to generate service and repository classes for Laravel 10, 11, 12, and 13 applications.
🎭 What's This Package All About?
This magical package is here to make your Laravel 10.x life easier, more fun, and way more productive. It's like having a personal code butler at your service!
- PHP 8.1+ for Laravel 10
- PHP 8.2+ for Laravel 11 and 12
- PHP 8.3+ for Laravel 13
- Laravel 10.x, 11.x, 12.x, or 13.x
- 🧙♂️ Generate Services: With a flick of your command wand, create beautiful service classes!
- 🏗️ Build Repositories: Conjure up repositories faster than you can say "Eloquent"!
- 🔗 Auto-Binding: Watch in awe as it automatically binds your interfaces to implementations!
- 🧩 Smart Providers: It even updates your service providers automagically!
Install the package with Composer:
composer require theranken/laravel-sr-generator
Then publish the package assets and register the generated providers:
php artisan service-repository:install
Compatibility Notes
- Laravel 10 projects register generated providers in
config/app.php. - Laravel 11+ projects register generated providers in
bootstrap/providers.php. - The package service provider is auto-discovered through Composer.