PHPackages                             ehystiv/servrepomaker - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ehystiv/servrepomaker

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ehystiv/servrepomaker
=====================

Service/Repository class generator

v1.1.0(2mo ago)014[1 PRs](https://github.com/ehystiv/ServRepoMaker/pulls)MITPHPPHP ^8.3CI passing

Since Feb 11Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/ehystiv/ServRepoMaker)[ Packagist](https://packagist.org/packages/ehystiv/servrepomaker)[ Docs](https://github.com/ehystiv/servrepomaker)[ GitHub Sponsors]()[ RSS](/packages/ehystiv-servrepomaker/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (2)Dependencies (26)Versions (10)Used By (0)

Service/Repository class generator
==================================

[](#servicerepository-class-generator)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f5abad5102ceb4aa059d87a2749e341d7266c240fa0fcca5c3dc9192783a148f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656879737469762f736572767265706f6d616b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ehystiv/servrepomaker)[![GitHub Tests Action Status](https://camo.githubusercontent.com/35f553635ea7c7aee9600e7634d51c80cf8a9420136322b5c4927cc9aedf0ae5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f656879737469762f736572767265706f6d616b65722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/ehystiv/servrepomaker/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/3d112da402744e190568dea1751bd48cd7bf8a7b93081bb2c2455692b9f36a7c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f656879737469762f736572767265706f6d616b65722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/ehystiv/servrepomaker/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/95d123047d33a6b0c0f5f3a4dfe8ffc0c90b077a0d31f57dff5c2e3072dc3526/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656879737469762f736572767265706f6d616b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ehystiv/servrepomaker)

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

Supports Laravel 11, 12, and 13.

Installation
------------

[](#installation)

```
composer require --dev ehystiv/servrepomaker
```

Usage
-----

[](#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
-------------

[](#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
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Stefano Bichicchi](https://github.com/ehystiv)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance87

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 73% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~240 days

Total

3

Last Release

72d ago

Major Versions

0.0.1 → 1.0.02025-02-11

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/28261350?v=4)[Stefano Bichicchi](/maintainers/ehystiv)[@ehystiv](https://github.com/ehystiv)

---

Top Contributors

[![ehystiv](https://avatars.githubusercontent.com/u/28261350?v=4)](https://github.com/ehystiv "ehystiv (27 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")

---

Tags

laravelpackagerepository-patternservice-patternlaravelgeneratorartisanservicerepositorymake

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/ehystiv-servrepomaker/health.svg)

```
[![Health](https://phpackages.com/badges/ehystiv-servrepomaker/health.svg)](https://phpackages.com/packages/ehystiv-servrepomaker)
```

###  Alternatives

[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329575.9k35](/packages/codewithdennis-filament-select-tree)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3915.5k](/packages/rawilk-profile-filament-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
