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

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

daveawb/repository
==================

A generic repository for Laravel

1.3.0(8y ago)15.5k2MITPHP

Since Jul 2Pushed 7y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (3)Versions (19)Used By (0)

Repositories for Laravel 5.3
============================

[](#repositories-for-laravel-53)

A repository package to add easy to use repositories to any Laravel project utilising Eloquent as the primary DAL. Tested in Laravel 5.3.

### Installation

[](#installation)

`composer require daveawb/repos`

### Usage

[](#usage)

#### Create a repository class

[](#create-a-repository-class)

```
namespace App\Repositories;

class Repository extends \Daveawb\Repos\Repository
{
    /**
     * Return the models class name
     *
     * @return string
     */
    public function model()
    {
        return App\User::class;
    }
}

```

#### Available API methods

[](#available-api-methods)

### Criteria

[](#criteria)

### Terminators

[](#terminators)

### Credits

[](#credits)

[A repository pattern for Laravel 5.1 by andersao](https://github.com/andersao/l5-repository)

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 93.3% 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 ~55 days

Recently: every ~64 days

Total

17

Last Release

3081d ago

Major Versions

0.1.9 → 1.0.02017-03-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/7f0e4a48bd1b931fbd657eff36b9068819df1e55f2b4c799a836b10596dc1e48?d=identicon)[syholloway](/maintainers/syholloway)

![](https://www.gravatar.com/avatar/4da1dd512c9c67b9df1daaee868bb67e9a1330b66da3232269fd54baa4a0b35a?d=identicon)[daveawb](/maintainers/daveawb)

---

Top Contributors

[![Daveawb](https://avatars.githubusercontent.com/u/4409005?v=4)](https://github.com/Daveawb "Daveawb (14 commits)")[![kuba81](https://avatars.githubusercontent.com/u/5584631?v=4)](https://github.com/kuba81 "kuba81 (1 commits)")

---

Tags

composer-packagelaravellaravel-5-packagephp

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90440.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)[wildside/userstamps

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)

PHPackages © 2026

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