PHPackages                             npabisz/laravel-repositories - 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. [Database &amp; ORM](/categories/database)
4. /
5. npabisz/laravel-repositories

ActiveLibrary[Database &amp; ORM](/categories/database)

npabisz/laravel-repositories
============================

Repositories for Laravel models

v2.0.4(1y ago)0499—0%MITPHPPHP ^8.2

Since Apr 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/npabisz/laravel-repositories)[ Packagist](https://packagist.org/packages/npabisz/laravel-repositories)[ Docs](https://github.com/npabisz/laravel-repositories)[ RSS](/packages/npabisz-laravel-repositories/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (6)Versions (17)Used By (0)

Model repositories
==================

[](#model-repositories)

Repositories and more for Laravel

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

[](#installation)

```
composer require npabisz/laravel-repositories
```

### Creating repository

[](#creating-repository)

```
php artisan make:repository Example
```

```
php artisan make:repository Example --model-namespace=Some\\Namespace
```

### Creating model

[](#creating-model)

`php artisan make:repository-model MyModel`

`php artisan make:repository-model MyModel --model-namespace=App\Models --attributes="user_id=integer,name=string"`

### Creating migration

[](#creating-migration)

`php artisan make:repository-migration MyModel`

`php artisan make:repository-migration MyModel --model-namespace=App\Models"`

### Creating API controller

[](#creating-api-controller)

`php artisan make:repository-api MyModel`

`php artisan make:repository-api MyModel --model-namespace=App\Models" --api-namespace="App\Http\Controllers\Api" --api-repository-contract="App\Repositories\Contracts\MyModelRepositoryContract"`

### Namespace

[](#namespace)

Case scenario for model `App\Models\User\Image`, provide namespace excluding `App\Models`

`php artisan make:repository --namespace=User`

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

 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 ~158 days

Recently: every ~170 days

Total

16

Last Release

516d ago

Major Versions

v1.1.3 → v2.0.02022-12-12

PHP version history (3 changes)v1.0PHP &gt;=7.0

v2.0.0PHP &gt;=8.1

v2.0.4PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/e4d3e2ac1bee448bce2849cdc615ace846f8a2431d2dd5a0b483bd4077234c9e?d=identicon)[yorki](/maintainers/yorki)

---

Top Contributors

[![npabisz](https://avatars.githubusercontent.com/u/13676368?v=4)](https://github.com/npabisz "npabisz (42 commits)")

---

Tags

laravelmodelrepository

### Embed Badge

![Health badge](/badges/npabisz-laravel-repositories/health.svg)

```
[![Health](https://phpackages.com/badges/npabisz-laravel-repositories/health.svg)](https://phpackages.com/packages/npabisz-laravel-repositories)
```

###  Alternatives

[crcms/repository

Detached model and controller warehouse data provider

674.4k1](/packages/crcms-repository)[orkhanahmadov/eloquent-repository

Eloquent Repository for Laravel

2764.3k](/packages/orkhanahmadov-eloquent-repository)

PHPackages © 2026

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