PHPackages                             onethirtyone/repository-pattern - 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. onethirtyone/repository-pattern

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

onethirtyone/repository-pattern
===============================

An artisan command interface for generating Laravel repository pattern modules

v1.1.1(8y ago)0964MITPHP

Since Apr 20Pushed 8y agoCompare

[ Source](https://github.com/robbfountain/repository-pattern)[ Packagist](https://packagist.org/packages/onethirtyone/repository-pattern)[ RSS](/packages/onethirtyone-repository-pattern/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

OneThirtyOne/Repository-Pattern
===============================

[](#onethirtyonerepository-pattern)

[![Build Status](https://camo.githubusercontent.com/9732991a63ec87a95841fc72dda95c296e57bf4e465e87b5746497c5afccd5af/68747470733a2f2f7472617669732d63692e6f72672f7267663230372f7265706f7369746f72792d7061747465726e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/rgf207/repository-pattern)[![StyleCI](https://camo.githubusercontent.com/8e945ef212cbcb1feca6513f0a0aa2968f42ea7707ba095d4e2341a79329038e/68747470733a2f2f7374796c6563692e696f2f7265706f732f3133303236303734382f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/130260748)

Simple Artisan command to create repository pattern modules for Laravel application. Run `php artisan onethirtyone:create-repository Test -m` to create `App\Repositories\TestRepository.php` ad associated `App\Test.php` Model. Omit the `-m` option to skip creating the model.

\##Installation Install using composer

```
composer require onethirtyone/repository-pattern

```

For laravel 5.5+ there is nothing more you need to do. For laravel 5.4 and below add the service provider to your `config/app.php`

```
$providers => [
...
onethirtyone\Repository\RepositoryProvider::class,
...
];
```

Run the Artisan command to create a repository and the, optional, associated model

```
php artisan onethirtyone:make-repository Test -m

```

This will create a `TestRepository.php` file under `app\Repositories`. if using the `-m` options, the associated Eloquent model will be created under `app/`

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

4

Last Release

2947d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9e4316bb9bae35cc0d9535ad772232aa07ebfc0c9d14aa6120c241cc1dad9cc8?d=identicon)[131Studios](/maintainers/131Studios)

---

Top Contributors

[![robbfountain](https://avatars.githubusercontent.com/u/3590383?v=4)](https://github.com/robbfountain "robbfountain (29 commits)")

---

Tags

laravelrepositorypattern

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/onethirtyone-repository-pattern/health.svg)

```
[![Health](https://phpackages.com/badges/onethirtyone-repository-pattern/health.svg)](https://phpackages.com/packages/onethirtyone-repository-pattern)
```

###  Alternatives

[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)

PHPackages © 2026

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