ehystiv/servrepomaker

Service/Repository class generator

Maintainers

Package info

github.com/ehystiv/ServRepoMaker

Homepage

pkg:composer/ehystiv/servrepomaker

Fund package maintenance!

Stefano Bichicchi

Statistics

Installs: 8

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.1.0 2026-06-07 19:45 UTC

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Adds Artisan commands to generate Service and Repository classes from stubs.

Supports Laravel 11, 12, and 13.

Installation

composer require --dev ehystiv/servrepomaker

Usage

php artisan make:service UserService       # generates App\Http\Services\UserService.php
php artisan make:repository UserRepository # generates App\Http\Repositories\UserRepository.php

Both commands prompt for the class name if omitted.

Configuration

Publish the config file to customise the default namespaces:

php artisan vendor:publish --tag="servrepomaker-config"

This creates config/servrepomaker.php:

return [
    'service_namespace'    => 'App\\Http\\Services',
    'repository_namespace' => 'App\\Http\\Repositories',
];

Change the values to match your project structure. The generated files will be placed accordingly.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.