PHPackages                             comhon-project/laravel-entity-requester - 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. comhon-project/laravel-entity-requester

ActiveLibrary

comhon-project/laravel-entity-requester
=======================================

laravel library that permits to handle complex requests to retrieve entities through a REST API

v0.9.0(1mo ago)00[1 PRs](https://github.com/comhon-project/laravel-entity-requester/pulls)MITPHPPHP ^8.2CI passing

Since Oct 13Pushed 2w ago1 watchersCompare

[ Source](https://github.com/comhon-project/laravel-entity-requester)[ Packagist](https://packagist.org/packages/comhon-project/laravel-entity-requester)[ Docs](https://github.com/comhon-project/laravel-entity-requester)[ GitHub Sponsors](https://github.com/comhon-project)[ RSS](/packages/comhon-project-laravel-entity-requester/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (7)Versions (6)Used By (0)

Laravel Entity Requester
========================

[](#laravel-entity-requester)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5534ed8a1ac1a27c870fdf0282c9f77211cbcb2113af807f9eded41532fef753/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f6d686f6e2d70726f6a6563742f6c61726176656c2d656e746974792d7265717565737465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/comhon-project/laravel-entity-requester)[![GitHub Tests Action Status](https://camo.githubusercontent.com/e5aaf549c7266083f985f6b766776f0b9f2b5d749df98ebc0fea427496869b95/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f636f6d686f6e2d70726f6a6563742f6c61726176656c2d656e746974792d7265717565737465722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/comhon-project/laravel-entity-requester/actions?query=workflow%3Arun-tests+branch%3Amain)[![Code Coverage](https://camo.githubusercontent.com/f0efec248fa3246a87cbc9455453940284597a50d834cd48e469d3474a08bcb9/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f636f6d686f6e2d70726f6a6563742f6c61726176656c2d656e746974792d7265717565737465723f6c6162656c3d636f766572616765267374796c653d666c61742d737175617265)](https://codecov.io/gh/comhon-project/laravel-entity-requester)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/bd3336f63b8cd1dd065c7bf0fd3ab7ec66601a2fd2b457505b3df0a17942eae2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f636f6d686f6e2d70726f6a6563742f6c61726176656c2d656e746974792d7265717565737465722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/comhon-project/laravel-entity-requester/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/e131d5304d1e26041e026406bb72a68e6509a170a39561635c070c747a8c0de6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f6d686f6e2d70726f6a6563742f6c61726176656c2d656e746974792d7265717565737465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/comhon-project/laravel-entity-requester)

A Laravel package that converts complex REST API filter/sort requests into Eloquent queries, with schema-based validation and authorization.

Features
--------

[](#features)

- **Schema-driven**: define entity structures and access control via JSON schemas
- **Complex filtering**: conditions, groups (AND/OR), relationship existence, morph relations, scopes
- **Sorting**: multi-column, through relationships, with aggregation functions
- **Validation &amp; authorization**: requests are checked against entity and request schemas
- **Schema generation**: auto-generate schemas from Eloquent models
- **i18n**: validation messages translated in 10 languages

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

[](#installation)

```
composer require comhon-project/laravel-entity-requester
```

```
php artisan vendor:publish --tag="entity-requester-config"
```

Quick start
-----------

[](#quick-start)

Generate schemas from your model:

```
php artisan entity-requester:make-model-schema App\\Models\\User --filtrable=all --sortable=attributes
```

Build a query from a request:

```
use Comhon\EntityRequester\Facades\EntityRequestValidator;
use Comhon\EntityRequester\Facades\EloquentBuilderFactory;

$entityRequest = EntityRequestValidator::validate($request->all());
$results = EloquentBuilderFactory::fromEntityRequest($entityRequest)->get();

// Or directly from inputs (skips authorization, use only with trusted sources)
$results = EloquentBuilderFactory::fromInputs($request->all())->get();
```

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

[](#documentation)

To learn more about Laravel Entity Requester, please see the [documentation](https://comhon-project.github.io/laravel-entity-requester/).

Changelog
---------

[](#changelog)

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

License
-------

[](#license)

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

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance95

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.7% 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

31d ago

### Community

Maintainers

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

---

Top Contributors

[![comhon-project](https://avatars.githubusercontent.com/u/14244177?v=4)](https://github.com/comhon-project "comhon-project (41 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

---

Tags

laravelcomhon-projectlaravel-entity-requester

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/comhon-project-laravel-entity-requester/health.svg)

```
[![Health](https://phpackages.com/badges/comhon-project-laravel-entity-requester/health.svg)](https://phpackages.com/packages/comhon-project-laravel-entity-requester)
```

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

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