PHPackages                             alive2212/laravel-query-helper - 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. alive2212/laravel-query-helper

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

alive2212/laravel-query-helper
==============================

Laravel Query Helper

v4.0.5(3y ago)23851MITPHPPHP &gt;=7.3CI failing

Since May 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Alive2212/LaravelQueryHelper)[ Packagist](https://packagist.org/packages/alive2212/laravel-query-helper)[ Docs](https://github.com/Alive2212/LaravelQueryHelper)[ RSS](/packages/alive2212-laravel-query-helper/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (5)Versions (11)Used By (1)

LaravelQueryHelper
==================

[](#laravelqueryhelper)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e4151f9dfef4a400cc1695016c52275a02cd7a654afe128948be41e3a66a84b4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f416c697665323231322f4c61726176656c517565727948656c7065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/Alive2212/LaravelQueryHelper)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/502aa0b926eebc54b904a2cf4db27b347efb9a40f54cdbd83f891c04bacdd3c6/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f416c697665323231322f4c61726176656c517565727948656c7065722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Alive2212/LaravelQueryHelper)[![Coverage Status](https://camo.githubusercontent.com/4f708e96c5c3e521be4bd971a3be599540b97716322ebd8e9799cb78c9a7f073/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f416c697665323231322f4c61726176656c517565727948656c7065722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Alive2212/LaravelQueryHelper/code-structure)[![Quality Score](https://camo.githubusercontent.com/79c05ef74d3561f0ad32e46653fca7679bd7360c64bbc49336bb2da53aed885b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f416c697665323231322f4c61726176656c517565727948656c7065722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/Alive2212/LaravelQueryHelper)[![Total Downloads](https://camo.githubusercontent.com/af98031414d299fad590b52846d9034326279e15397528d2bd06f75b7e35e0ab/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f416c697665323231322f4c61726176656c517565727948656c7065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/Alive2212/LaravelQueryHelper)

**Note:** Replace `Babak Nodoust` `https://github.com/Alive2212` `http://babakn.com` `alive2212@yahoo.com` `Alive2212` `LaravelQueryHelper` `Laravel Query Helper` with their correct values in [README.md](README.md), [CHANGELOG.md](CHANGELOG.md), [CONTRIBUTING.md](CONTRIBUTING.md), [LICENSE.md](LICENSE.md) and [composer.json](composer.json) files, then delete this line. You can run `$ php prefill.php` in the command line to make all replacements at once. Delete the file prefill.php as well.

This Package is smart deep where condition helper. you can deep where condition with many relation with just "." between your model and get your results.

Structure
---------

[](#structure)

```
bin/
config/
src/
tests/
vendor/

```

Install
-------

[](#install)

Via Composer

```
$   composer require alive2212/laravel-query-helper
```

Usage
-----

[](#usage)

for using just send array filter like following

```
    protected $filters = [ // or where condition every thing here
        [ // and  where condition every thing here
            ['id', '=', 1],
            ['title', '=', 'test'],
            ['folan.id', '=', 2],
            ['folan.bahman.id', '=', 3],
            ['folan.title', '=', 'test'],
            ['folan.bahman.amount', '>', 1000],
        ],
        [
            ['id', '=', 4],
            ['folan.id', '=', 5],
            ['folan.title', '=', 'test123'],
            ['folan.bahman.id', '=', 1],
            ['folan.bahman.title', '=', 'test2'],
        ],
        [
            ['id', '=', 7],
            ['folan.id', '=', 8],
            ['folan.title', '=', 'test1234'],
            ['folan.bahman.id', '=', 9],
            ['folan.bahman.title', '=', 'test21'],
        ]
    ];
```

Change log
----------

[](#change-log)

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

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [Babak Nodoust](https://github.com/https://github.com/Alive2212)
- [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

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 92.3% 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 ~196 days

Recently: every ~214 days

Total

10

Last Release

1136d ago

Major Versions

v1.0.0 → v2.0.02020-01-16

v2.0.1 → v3.0.02020-04-02

v3.0.0 → v4.0.02020-10-03

PHP version history (4 changes)v1.0.0PHP ~5.6|~7.0

v4.0.0PHP ~5.6|~7.0|~8

v4.0.4PHP &gt;=5.6

v4.0.5PHP &gt;=7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/096cb0a90e1515fd7369bc03f9c36ce1cd55b64c3ac777400ea3997c28de83cc?d=identicon)[Alive2212](/maintainers/Alive2212)

---

Top Contributors

[![Alive2212](https://avatars.githubusercontent.com/u/5178290?v=4)](https://github.com/Alive2212 "Alive2212 (12 commits)")[![BobNoe777](https://avatars.githubusercontent.com/u/120102865?v=4)](https://github.com/BobNoe777 "BobNoe777 (1 commits)")

---

Tags

Alive2212LaravelQueryHelper

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/alive2212-laravel-query-helper/health.svg)

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

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k7.2M71](/packages/mongodb-laravel-mongodb)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8425.3M87](/packages/laravel-doctrine-orm)[dyrynda/laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models.

4802.8M8](/packages/dyrynda-laravel-model-uuid)[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)[pdphilip/elasticsearch

An Elasticsearch implementation of Laravel's Eloquent ORM

145360.2k4](/packages/pdphilip-elasticsearch)

PHPackages © 2026

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