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)0131↓100%MITPHPPHP ^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 1mo 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

39

—

LowBetter than 85% of packages

Maintenance38

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

565d 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/yorki-model-repository/health.svg)

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

###  Alternatives

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k7.2M71](/packages/mongodb-laravel-mongodb)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8425.3M87](/packages/laravel-doctrine-orm)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[dyrynda/laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models.

4802.8M8](/packages/dyrynda-laravel-model-uuid)[laravel/folio

Page based routing for Laravel.

608453.9k27](/packages/laravel-folio)

PHPackages © 2026

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