PHPackages                             mrterryh/laravel-repos - 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. mrterryh/laravel-repos

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

mrterryh/laravel-repos
======================

Small Laravel 5 repositories package to abstract the database layer of your web application.

1.2.1(10y ago)276MITPHPPHP &gt;=5.4.0

Since Aug 9Pushed 10y ago1 watchersCompare

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

READMEChangelog (5)DependenciesVersions (6)Used By (0)

Laravel Repos
=============

[](#laravel-repos)

Small Laravel 5 repositories package to abstract the database layer of your web application.

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

[](#installation)

Install the package by running, either by running the following command in your project root:

```
$ composer require mrterryh/laravel-repos

```

Or by adding the following line to the `require` object in your `composer.json` file:

```
"mrterryh/laravel-repos": "1.*"

```

Then run `$ composer update` in your command line to install the dependency.

Usage
-----

[](#usage)

Anywhere within your application, create a new file. The file name convention for this package is `[Model]Repository.php`. Let's use the standard Laravel `User` model for this example.

Create a new file `UserRepository.php` in `app/Repositories`, and create a class within the file that extends ` Mrterryh\Repositories\Base\EloquentRepository`:

```
use Mrterryh\Repositories\Base\EloquentRepository;

class UserRepository extends EloquentRepository
{

}

```

Then, provide the full, namespaced path of the model in the `$model` property.

```
use Mrterryh\Repositories\Base\EloquentRepository;

class UserRepository extends EloquentRepository
{
    protected $model = 'App\User';
}

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Total

5

Last Release

3885d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6ffdd47503f5111c43de3e2ed236cf93974949df49e79418400074476ce99e42?d=identicon)[mrterryh](/maintainers/mrterryh)

---

Top Contributors

[![mrterryh](https://avatars.githubusercontent.com/u/4132491?v=4)](https://github.com/mrterryh "mrterryh (9 commits)")

---

Tags

laraveldatabaseeloquentrepositories

### Embed Badge

![Health badge](/badges/mrterryh-laravel-repos/health.svg)

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

###  Alternatives

[czim/laravel-repository

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

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

The repository mode for laravel!

364.1k](/packages/littlebug-laravel-repository)

PHPackages © 2026

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