PHPackages                             liqrgv/query-filter-laravel - 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. liqrgv/query-filter-laravel

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

liqrgv/query-filter-laravel
===========================

Query filter shortcut for controller

1.0.1(5y ago)102.0k↓50%2[1 issues](https://github.com/LIQRGV/query-filter-laravel/issues)[2 PRs](https://github.com/LIQRGV/query-filter-laravel/pulls)Apache-2.0PHPCI passing

Since Nov 10Pushed 3mo ago2 watchersCompare

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

READMEChangelogDependencies (6)Versions (11)Used By (0)

Query Filter Laravel
====================

[](#query-filter-laravel)

[![Build Status](https://camo.githubusercontent.com/6cff0b92e7235faa1f0c13692fe0f3bde626990a86458cf7c204968d8163e6ab/68747470733a2f2f6170692e7472617669732d63692e636f6d2f4c49515247562f71756572792d66696c7465722d6c61726176656c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/LIQRGV/query-filter-laravel)[![codecov](https://camo.githubusercontent.com/188a53d5ca4050ef7fe8880ffe786bb6a1fceb1a2707db5e6d099a62b138fb2b/68747470733a2f2f636f6465636f762e696f2f67682f4c49515247562f71756572792d66696c7465722d6c61726176656c2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/LIQRGV/query-filter-laravel)

Change your Request into Query builder

With this package, we can prevent doing tedious work of composing query builder This package will turn URL query

```
book?filter[title][is]=Harry&filter[published_at][>]=2010-10-13

```

into

```
Book::query()
  ->where('title', '=', 'Harry')
  ->where('published_at', '>', '2010-10-13')

```

Getting Started
---------------

[](#getting-started)

You can install this package via composer CLI using

```
composer require liqrgv/query-filter-laravel

```

Usage
-----

[](#usage)

You can add `RequestParser` class to your route closure

```
Route::get('/model', function(RequestParser $parser) {
    $builder = $parser->getBuilder();
    // do something with builder
    .............
});

```

or on your controller

```
public function index(RequestParser $parser) {
    $builder = $parser->getBuilder();
    // do something with builder
    .............
}

```

Running the tests
-----------------

[](#running-the-tests)

In order to running the test, you should have `composer` on your system. Read more on

You should install dependency for testing with

```
composer install

```

After that, you can run all test with

```
./phpunit

```

Deployment
----------

[](#deployment)

(TBD)

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

[](#contributing)

Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.

Versioning
----------

[](#versioning)

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags).

Authors
-------

[](#authors)

- **Septian Hari** - *Initial work* - [LIQRGV](https://github.com/LIQRGV)

See also the list of [contributors](https://github.com/LIQRGV/query-filter-laravel/contributors) who participated in this project.

License
-------

[](#license)

This project is licensed under the Apache License

Acknowledgments
---------------

[](#acknowledgments)

- Hat tip to anyone whose code was used
- Inspiration
- etc

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance52

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 77.4% 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 ~34 days

Recently: every ~57 days

Total

8

Last Release

2132d ago

Major Versions

0.0.6 → 1.0.02020-07-09

### Community

Maintainers

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

---

Top Contributors

[![LIQRGV](https://avatars.githubusercontent.com/u/5935057?v=4)](https://github.com/LIQRGV "LIQRGV (41 commits)")[![rizkyarlin](https://avatars.githubusercontent.com/u/12138606?v=4)](https://github.com/rizkyarlin "rizkyarlin (6 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![PMessinezis](https://avatars.githubusercontent.com/u/56830771?v=4)](https://github.com/PMessinezis "PMessinezis (2 commits)")[![nafiesl](https://avatars.githubusercontent.com/u/8721551?v=4)](https://github.com/nafiesl "nafiesl (1 commits)")

---

Tags

laravelquery-builderquery-filter-laravellaraveleloquentquery-filterliqrgv

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/liqrgv-query-filter-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/liqrgv-query-filter-laravel/health.svg)](https://phpackages.com/packages/liqrgv-query-filter-laravel)
```

###  Alternatives

[mehdi-fathi/eloquent-filter

Eloquent Filter adds custom filters automatically to your Eloquent Models in Laravel.It's easy to use and fully dynamic, just with sending the Query Strings to it.

450191.6k1](/packages/mehdi-fathi-eloquent-filter)[rtconner/laravel-likeable

Trait for Laravel Eloquent models to allow easy implementation of a 'like' or 'favorite' or 'remember' feature.

394388.0k5](/packages/rtconner-laravel-likeable)[shiftonelabs/laravel-cascade-deletes

Adds application level cascading deletes to Eloquent Models.

163632.1k2](/packages/shiftonelabs-laravel-cascade-deletes)[highsolutions/eloquent-sequence

A Laravel package for easy creation and management sequence support for Eloquent models with elastic configuration.

121130.3k](/packages/highsolutions-eloquent-sequence)[cybercog/laravel-nova-ban

A Laravel Nova banning functionality for your application.

40199.8k](/packages/cybercog-laravel-nova-ban)[phaza/single-table-inheritance

Single Table Inheritance Trait

1515.8k](/packages/phaza-single-table-inheritance)

PHPackages © 2026

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