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

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

znck/repository
===============

A better way to work around Eloquent.

v0.3.0(9y ago)21.3kMITPHP

Since Sep 11Pushed 9y ago1 watchersCompare

[ Source](https://github.com/znck/repository)[ Packagist](https://packagist.org/packages/znck/repository)[ RSS](/packages/znck-repository/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (10)Versions (9)Used By (0)

 [![](https://camo.githubusercontent.com/bb139a021c71f0c072261eff3ae446f885e300fa43623886d4c3bdf400a01b1d/687474703a2f2f7265706f7369746f72792e7a6e636b2e6d652f6173736574732f696d616765732f6c6f676f2e706e67)](https://camo.githubusercontent.com/bb139a021c71f0c072261eff3ae446f885e300fa43623886d4c3bdf400a01b1d/687474703a2f2f7265706f7369746f72792e7a6e636b2e6d652f6173736574732f696d616765732f6c6f676f2e706e67)

Introduction
------------

[](#introduction)

Don't use your Eloquent models directly into your controllers, instead create a repository.

> Read [docs](http://repository.znck.me/installation) for installation, usage and contributing guides.

 [ ![StyleCI Status](https://camo.githubusercontent.com/9b519472c9f57ab9aefc651370d33812446b9d51aaf2aa9d92464ac59fd24f8b/68747470733a2f2f7374796c6563692e696f2f7265706f732f34323239303934322f736869656c64) ](https://styleci.io/repos/42290942) [ ![Build Status](https://camo.githubusercontent.com/035e2d61c06488ead0c134773e4b3fef44ae3e23ddd4762211c1e9aa5b002c7c/68747470733a2f2f636972636c6563692e636f6d2f67682f7a6e636b2f7265706f7369746f72792e7376673f7374796c653d737667) ](https://circleci.com/gh/znck/repository) [ ![Coverage Status](https://camo.githubusercontent.com/9c32b52aa59aa7e4b351e86aa1a5f62b4225067cece748012813c1d266944e79/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7a6e636b2f7265706f7369746f72792f62616467652e7376673f6272616e63683d6d6173746572267374796c653d666c61742d737175617265) ](https://coveralls.io/github/znck/repository?branch=master) [ ![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265) ](LICENSE) [ ![Packagist](https://camo.githubusercontent.com/69901eb984c1ca5a0bf57d9782fde19c4c77ea7f5f3fb9317ff1525ea3d29536/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a6e636b2f7265706f7369746f72792e7376673f7374796c653d666c61742d737175617265) ](https://packagist.org/packages/znck/repository) [ ![Latest Version](https://camo.githubusercontent.com/42b4ed73ec020e5511a2596e1afab7f4e148562d2551f1c06784a93d2852d588/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7a6e636b2f7265706f7369746f72792e7376673f7374796c653d666c61742d737175617265) ](https://github.com/znck/repostory/releases) [ ![Issues](https://camo.githubusercontent.com/1325c14a39a0ab6e58cd3cfd8d34f077a4c910f54e5b11d3302a600379570936/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f7a6e636b2f7265706f7369746f72792e7376673f7374796c653d666c61742d737175617265) ](https://github.com/znck/repository/issues)

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [Rahul Kadyan](https://github.com/znck)
- [All Contributors](https://github.com/znck/repository/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](http://repository.znck.me/license) for more information.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Recently: every ~49 days

Total

8

Last Release

3520d ago

PHP version history (2 changes)v0.1PHP &gt;=5.4.0

v0.2.2PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/79c0b664c035ee2af1f8988190a505d9fd559649b56711d31670f6717e3ec441?d=identicon)[znck](/maintainers/znck)

---

Top Contributors

[![znck](https://avatars.githubusercontent.com/u/2596484?v=4)](https://github.com/znck "znck (85 commits)")

---

Tags

eloquentlaravelrepositoryrest-apilaraveldatabaseeloquentrepositoryrepositories

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[czim/laravel-repository

Repository for Laravel (inspired by and indebted to Bosnadev/Repositories)

54110.0k4](/packages/czim-laravel-repository)[toponepercent/baum

Baum is an implementation of the Nested Set pattern for Eloquent models.

3154.7k](/packages/toponepercent-baum)

PHPackages © 2026

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