PHPackages                             mouhannad/query-filters - 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. mouhannad/query-filters

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

mouhannad/query-filters
=======================

Laravel Package To Easily Filter Eloquent Queries

v1.0.3(1y ago)016[2 PRs](https://github.com/MohannadAbdAlrhem/query-filters/pulls)MITPHPPHP ^7.0 || ^8.0CI passing

Since Jul 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/MohannadAbdAlrhem/query-filters)[ Packagist](https://packagist.org/packages/mouhannad/query-filters)[ Docs](https://github.com/MohannadAbdAlrhem/query-filters)[ GitHub Sponsors](https://github.com/:vendor_name)[ RSS](/packages/mouhannad-query-filters/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (7)Used By (0)

:package\_description
=====================

[](#package_description)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5f26f29e3835d3e04dfb3e6992e46b5430e5084e3f511c8585677c49a7b93a14/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f3a76656e646f725f736c75672f3a7061636b6167655f736c75672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/:vendor_slug/:package_slug)[![GitHub Tests Action Status](https://camo.githubusercontent.com/435ea0c5042bb683b4c67bea5bc2be4848dcbf1a937798716f1d76ee9867d931/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f3a76656e646f725f736c75672f3a7061636b6167655f736c75672f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/:vendor_slug/:package_slug/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/cae7c060bc75ded53ab9be598cdd01ab0a232ff40ccd01f41c666f6601a2cec1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f3a76656e646f725f736c75672f3a7061636b6167655f736c75672f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/:vendor_slug/:package_slug/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/eecef849b077e1fd177407f7332e114b97c07a007ef6f271940339001b727e66/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f3a76656e646f725f736c75672f3a7061636b6167655f736c75672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/:vendor_slug/:package_slug)

---

This repo can be used to scaffold a Laravel package. Follow these steps to get started:

1. Press the "Use this template" button at the top of this repo to create a new repo with the contents of this skeleton.
2. Run "php ./configure.php" to run a script that will replace all placeholders throughout all the files.
3. Have fun creating your package.
4. If you need help creating a package, consider picking up our [Laravel Package Training](https://laravelpackage.training) video course.

---

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/d7f26d1155fe87eaf7316120ab13df33a13607eaf39c890056b69a8dce07de16/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f3a7061636b6167655f6e616d652e6a70673f743d31)](https://spatie.be/github-ad-click/:package_name)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require :vendor_slug/:package_slug
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag=":package_slug-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag=":package_slug-config"
```

This is the contents of the published config file:

```
return [
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag=":package_slug-views"
```

Usage
-----

[](#usage)

```
$variable = new VendorName\Skeleton();
echo $variable->echoPhrase('Hello, VendorName!');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [:author\_name](https://github.com/:author_username)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Every ~0 days

Total

4

Last Release

667d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0f07c7a62bb3eb6d31b3b4f19b38479af32a15387e6a03ebb7cc468321f2c70b?d=identicon)[MouhannadAbdAlrhem](/maintainers/MouhannadAbdAlrhem)

---

Top Contributors

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

---

Tags

laraveleloquentfiltersquery-filtersmouhannad

### Embed Badge

![Health badge](/badges/mouhannad-query-filters/health.svg)

```
[![Health](https://phpackages.com/badges/mouhannad-query-filters/health.svg)](https://phpackages.com/packages/mouhannad-query-filters)
```

###  Alternatives

[cerbero/query-filters

Filter Laravel Eloquent models based on query parameters.

85282.6k](/packages/cerbero-query-filters)[lacodix/laravel-model-filter

A Laravel package to filter, search and sort models with ease while fetching from database.

17649.9k](/packages/lacodix-laravel-model-filter)[indexzer0/eloquent-filtering

Powerful eloquent filtering

22425.9k3](/packages/indexzer0-eloquent-filtering)[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)[czim/laravel-filter

Filter for Laravel Eloquent queries, with support for modular filter building

8973.0k3](/packages/czim-laravel-filter)[aldemeery/sieve

A simple, clean and elegant way to filter Eloquent models.

1396.3k](/packages/aldemeery-sieve)

PHPackages © 2026

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