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

ActivePackage

programic/laravel-repository
============================

Using repositories in Laravel

v1.0.2(4y ago)016.0k↓46.2%proprietaryPHP

Since Aug 2Pushed 4y ago2 watchersCompare

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

READMEChangelog (1)DependenciesVersions (4)Used By (0)

Programic - Repositories
========================

[](#programic---repositories)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f273b106bd06aac2c16fdfc30297678413388bd142823c81b85cdd1dd49c9dd0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70726f6772616d69632f6c61726176656c2d7265706f7369746f72792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/programic/laravel-repository)[![](https://github.com/programic/laravel-repository/workflows/Run%20Tests/badge.svg?branch=master)](https://github.com/programic/laravel-repository/workflows/Run%20Tests/badge.svg?branch=master)[![Total Downloads](https://camo.githubusercontent.com/2328957b71220ba8f8099aa602a0c495663c1fa26784082ae1e5a46a79370da5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70726f6772616d69632f6c61726176656c2d7265706f7369746f72792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/programic/laravel-repository)

This package allows you to use Repositories and keeps the controllers clean

### Installation

[](#installation)

This package requires PHP 7.2 and Laravel 5.8 or higher.

```
composer require programic/laravel-repository

```

### Basic Usage

[](#basic-usage)

```
# Create Repository
php artisan make:repository UserRepository
```

```
use App\Repositories\UserRepository;
use Illuminate\Http\Request;

class UserController {

    public function index(Request $request, UserRepository $userRepository)
    {
        $userCollection = $userRepository->search($request)->get();
    }

}
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

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

Credits
-------

[](#credits)

- [Rick Bongers](https://github.com/rbongers)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community8

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

Every ~0 days

Total

3

Last Release

1751d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/04de5632caf547d8dfa4ffbfac25d0538f92f1e9d52d2f91a2d1d6f17a9561a5?d=identicon)[Programic](/maintainers/Programic)

---

Top Contributors

[![rick-bongers](https://avatars.githubusercontent.com/u/67374906?v=4)](https://github.com/rick-bongers "rick-bongers (3 commits)")

---

Tags

laravelprogramicrepository

### Embed Badge

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

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

PHPackages © 2026

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