PHPackages                             luciano-jr/laravel-api-query-handler - 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. luciano-jr/laravel-api-query-handler

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

luciano-jr/laravel-api-query-handler
====================================

Laravel API Query Handler Package.

1.0.6(8y ago)12041[2 issues](https://github.com/luciano-jr/Laravel-API-query-handler/issues)MITPHPPHP &gt;=5.4

Since Oct 16Pushed 8y ago1 watchersCompare

[ Source](https://github.com/luciano-jr/Laravel-API-query-handler)[ Packagist](https://packagist.org/packages/luciano-jr/laravel-api-query-handler)[ RSS](/packages/luciano-jr-laravel-api-query-handler/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (7)Dependencies (4)Versions (9)Used By (0)

Laravel API query handler
=========================

[](#laravel-api-query-handler)

[![Codacy Badge](https://camo.githubusercontent.com/22cb92a78b385c26239028c4265eac81a2afecd254734eebb53aab3aa283ff05/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6263363836643533313364323462353162326262396363343264626462353334)](https://www.codacy.com/app/luciano/Laravel-API-query-handler?utm_source=github.com&utm_medium=referral&utm_content=luciano-jr/Laravel-API-query-handler&utm_campaign=badger)

This Laravel package helps to handle a query request properly

Synopsis
--------

[](#synopsis)

In order to help

Code Example
------------

[](#code-example)

Show what the library does as concisely as possible, developers should be able to figure out **how** your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.

Motivation
----------

[](#motivation)

A short description of the motivation behind the creation and maintenance of the project. This should explain **why** the project exists.

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

[](#installation)

Require this package with composer using the following command:

```
composer require luciano-jr/laravel-api-query-handler
```

After updating composer, add the service provider to the `providers` array in `config/app.php`

```
LucianoJr\LaravelAPIQueryHandler\Providers\LaravelApiQueryHandlerServiceProvider::class,
```

### Configuration File

[](#configuration-file)

**If you use Lumen please skip this step**

If you want to change the default parameters, run this command on the terminal in order to publish the vendor config file:

`php artisan vendor:publish --provider="Lucianor\LaravelApiQueryHandler\Providers\LaravelApiQueryHandlerServiceProvider"`

Usage
-----

[](#usage)

```
    public function index(Request $request)
    {
        $collection = $this->repository->all();

        $collectionHandler = new CollectionHandler($collection, $request);
        $collectionHandler->handle();
    }

```

Tests
-----

[](#tests)

Describe and show how to run the tests with code examples.

Contributors
------------

[](#contributors)

Let people know how they can dive into the project, include important links to things like issue trackers, irc, twitter accounts if applicable.

License
-------

[](#license)

The Laravel API query handler is open-sourced software licensed under the MIT license.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 96.2% 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 ~18 days

Recently: every ~31 days

Total

8

Last Release

3004d ago

Major Versions

0.0.1 → 1.0.02017-10-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/0a847247ed576d6ca310f8b774188a9d402c885fec6636e5ba3357c72c42fd5a?d=identicon)[luciano-jr](/maintainers/luciano-jr)

---

Top Contributors

[![iamlucianojr](https://avatars.githubusercontent.com/u/3333167?v=4)](https://github.com/iamlucianojr "iamlucianojr (25 commits)")[![codacy-badger](https://avatars.githubusercontent.com/u/23704769?v=4)](https://github.com/codacy-badger "codacy-badger (1 commits)")

---

Tags

apicollectiondataeloquenthandlerl5xlaravelqueryapilaraveldataeloquentcollectionquery handlerL5.5

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/luciano-jr-laravel-api-query-handler/health.svg)

```
[![Health](https://phpackages.com/badges/luciano-jr-laravel-api-query-handler/health.svg)](https://phpackages.com/packages/luciano-jr-laravel-api-query-handler)
```

###  Alternatives

[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[typicms/nestablecollection

A Laravel Package that extends Collection to handle unlimited nested items following adjacency list model.

88327.2k20](/packages/typicms-nestablecollection)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)[sebastiaanluca/laravel-boolean-dates

Automatically convert Eloquent model boolean attributes to dates (and back).

40111.7k1](/packages/sebastiaanluca-laravel-boolean-dates)[matthenning/eloquent-api-filter

Awesome and simple way to filter Eloquent queries right from the API URL without the clutter.

104.9k](/packages/matthenning-eloquent-api-filter)

PHPackages © 2026

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