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

ActiveLibrary

jenhacool/repository
====================

Simple repository package for Laravel

1.0(6y ago)05MITPHPPHP ^7.2

Since Sep 28Pushed 6y ago1 watchersCompare

[ Source](https://github.com/jenhacool/repository)[ Packagist](https://packagist.org/packages/jenhacool/repository)[ Docs](https://github.com/jenhacool/repository)[ RSS](/packages/jenhacool-repository/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Laravel Repositories
====================

[](#laravel-repositories)

Simple package used to abstract the data layer

Install
-------

[](#install)

```
composer require jenhacool/repository

```

Generator
---------

[](#generator)

To generate repository for your Model, run this command:

```
php artisan make:repository Model

```

Usage
-----

[](#usage)

### Create a Model

[](#create-a-model)

```
namespace App;

class People extends Model {
    protected $fillable = [
        'name',
        'gender
    ]
}
```

### Create a Repository

[](#create-a-repository)

```
namespace App\Repositories;

use Jenhacool\Repository\AbstractRepository;
use App\People;

class PeopleRepository extends BaseRepository {
    protected $model = People::class;
}
```

Methods
-------

[](#methods)

- all($columns = array('\*'))
- paginate($limit = null, $columns = \['\*'\])
- find($id, $columns = \['\*'\])
- findByField($field, $value, $columns = \['\*'\])
- findWhere(array $where, $columns = \['\*'\])
- findWhereIn($field, array $where, $columns = \[\*\])
- create(array $data)
- update(array $data, $id)
- delete($id)
- deleteWhere(array $where)
- orderBy($column, $direction = 'asc')

Contact
-------

[](#contact)

Open an issue on GitHub if you have any problems or suggestions.

License
-------

[](#license)

The contents of this repository is released under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

2416d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/700d8f2f1f42a7b0d0783eb4e3285f9104e2c1f893ead6b03d2c68d7d3110c6f?d=identicon)[jenhacool](/maintainers/jenhacool)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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