PHPackages                             samjbro/srp-generator - 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. samjbro/srp-generator

ActiveLibrary

samjbro/srp-generator
=====================

A generator for the Service Repository Pattern

026PHP

Since Aug 30Pushed 8y ago1 watchersCompare

[ Source](https://github.com/samjbro/Laravel-5-SRPGenerator)[ Packagist](https://packagist.org/packages/samjbro/srp-generator)[ RSS](/packages/samjbro-srp-generator/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel 5 Service Repository Pattern Generator
==============================================

[](#laravel-5-service-repository-pattern-generator)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8097719a48c6c094ac8668acdfa410c17219abe9ddc01e803e08187a42307128/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73616d6a62726f2f4c61726176656c2d352d53525047656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/samjbro/Laravel-5-SRPGenerator)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/16ccbbca242c5ee8cc42a8dfd3557bc431e536a8da11cab84bf32e77571bb02d/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f73616d6a62726f2f4c61726176656c2d352d53525047656e657261746f722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/samjbro/Laravel-5-SRPGenerator)[![Coverage Status](https://camo.githubusercontent.com/ebfb5728cbfe32599a519eaa7772fd9d9d2c2306f7f87c9c7a596b61c0e8e5d3/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f73616d6a62726f2f4c61726176656c2d352d53525047656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/samjbro/Laravel-5-SRPGenerator/code-structure)[![Quality Score](https://camo.githubusercontent.com/27e63608f1e32e9c73139160cc57464995f1bf02a7ac3118b4139d03e811cd3d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f73616d6a62726f2f4c61726176656c2d352d53525047656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/samjbro/Laravel-5-SRPGenerator)[![Total Downloads](https://camo.githubusercontent.com/b0650f1f318a987c44a4df0c4ab3e0645558b72eadab505ac1853af293996717/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73616d6a62726f2f4c61726176656c2d352d53525047656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/samjbro/Laravel-5-SRPGenerator)

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.

Installation and Usage
----------------------

[](#installation-and-usage)

### Step 1: Install through composer

[](#step-1-install-through-composer)

```
composer require samjbro/srp-generator @dev

```

\###Step 2: Add the Service Provider in `app/Providers/AppServiceProvider.php`

```
public function register()
{
    if ($this->app->environment() == 'local') {
    $this->app->register('samjbro\SRPGenerator\SRPGeneratorServiceProvider');
    }
}
```

```
php artisan make:srp ModelName
```

Change log
----------

[](#change-log)

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

Testing
-------

[](#testing)

(upcoming)

```
$ composer test
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Sam Broughton](https://github.com/samjbro)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6a592516faac0f12c31f97a994bfffe3cb48dd9307406f7c3eeda665fb596fe1?d=identicon)[samjbro](/maintainers/samjbro)

### Embed Badge

![Health badge](/badges/samjbro-srp-generator/health.svg)

```
[![Health](https://phpackages.com/badges/samjbro-srp-generator/health.svg)](https://phpackages.com/packages/samjbro-srp-generator)
```

PHPackages © 2026

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