PHPackages                             yorki/model-repository - 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. yorki/model-repository

Abandoned → [npabisz/laravel-repositories](/?search=npabisz%2Flaravel-repositories)Library[Database &amp; ORM](/categories/database)

yorki/model-repository
======================

Repositories for Laravel models

v2.0.4(1y ago)0131MITPHPPHP ^8.2

Since Apr 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/npabisz/laravel-repositories)[ Packagist](https://packagist.org/packages/yorki/model-repository)[ Docs](https://github.com/npabisz/laravel-repositories)[ RSS](/packages/yorki-model-repository/feed)WikiDiscussions master Synced 3w ago

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

38

—

LowBetter than 83% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity84

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

610d 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://avatars.githubusercontent.com/u/9768121?v=4)[yorki](/maintainers/yorki)[@Yorki](https://github.com/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/yorki-model-repository/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

9782.1M161](/packages/laravel-ai)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k51.0M7.6k](/packages/larastan-larastan)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8385.5M96](/packages/laravel-doctrine-orm)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9742.3M121](/packages/roots-acorn)[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k8.7M64](/packages/spatie-laravel-responsecache)

PHPackages © 2026

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