PHPackages                             jooservices/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. [Database &amp; ORM](/categories/database)
4. /
5. jooservices/laravel-repository

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

jooservices/laravel-repository
==============================

Base repositories with CRUD, filtering, ordering and query-from-request for Laravel

1.0.0(1w ago)00MITPHPPHP ^8.5

Since Mar 9Pushed 1w agoCompare

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

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

Laravel Repository
==================

[](#laravel-repository)

Base repositories with CRUD, filtering, ordering, and query-from-request for Laravel 12. Built with SOLID, KISS, DRY, and YAGNI. Use only the traits you need.

Requirements
------------

[](#requirements)

- PHP ^8.5
- Laravel ^12.0
- illuminate/contracts, illuminate/database, illuminate/support, illuminate/http ^12.0

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

[](#installation)

```
composer require jooservices/laravel-repository
```

The package registers its service provider automatically. Optionally publish config:

```
php artisan vendor:publish --tag=laravel-repository-config
```

Documentation
-------------

[](#documentation)

Full documentation lives in the **[./docs](docs/)** folder:

DocumentDescription[**Architecture**](docs/architecture.md)Package structure, layers, interfaces, and design principles[**Process &amp; logic flow**](docs/process-flow.md)Data and request flow with diagrams (including Mermaid)[**Usage guide**](docs/usage-guide.md)Installation, configuration, trait selection, CRUD, filter/order, query-from-request, and testingQuick links from the docs:

- [Trait-based composition](docs/usage-guide.md#trait-based-composition) — which traits to use for which needs
- [Creating a repository](docs/usage-guide.md#creating-a-repository)
- [CRUD](docs/usage-guide.md#crud) · [Filter and order](docs/usage-guide.md#filter-and-order) · [Query from request](docs/usage-guide.md#query-from-request)
- [Testing and quality](docs/usage-guide.md#testing-and-quality)

Quick example
-------------

[](#quick-example)

```
use Jooservices\LaravelRepository\Contracts\RepositoryInterface;
use Jooservices\LaravelRepository\Repositories\EloquentRepository;
use Jooservices\LaravelRepository\Traits\HasCrud;
use Jooservices\LaravelRepository\Traits\HasFilter;
use Jooservices\LaravelRepository\Traits\HasOrder;

class UserRepository extends EloquentRepository implements RepositoryInterface
{
    use HasCrud, HasFilter, HasOrder;

    public function __construct(User $model)
    {
        parent::__construct($model);
    }
}
```

```
$user = $repo->find($id);
$users = $repo->filter(['status' => 'active'])->orderBy(['created_at' => 'desc'])->paginate(15);
$users = $repo->fromRequest($request)->paginate(15);  // with HasRequestQuery
```

Changelog
---------

[](#changelog)

See [CHANGELOG.md](CHANGELOG.md) for version history.

License
-------

[](#license)

MIT.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance98

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

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

13d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a4ff5b64fb70623808dbe8a32cabfd3add7db11ee382893a437c2660ba9d9f55?d=identicon)[jooservices](/maintainers/jooservices)

---

Top Contributors

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

---

Tags

laraveleloquentfiltercrudrepository

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[kajalpandya/generate_laravel_crud

Run command in terminal and make ready made crud for your entity

151.5k](/packages/kajalpandya-generate-laravel-crud)

PHPackages © 2026

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