PHPackages                             gkalmoukis/laravel-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. [Search &amp; Filtering](/categories/search)
4. /
5. gkalmoukis/laravel-filters

ActiveLibrary[Search &amp; Filtering](/categories/search)

gkalmoukis/laravel-filters
==========================

28[1 issues](https://github.com/gkalmoukis/laravel-filters/issues)PHP

Since Sep 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/gkalmoukis/laravel-filters)[ Packagist](https://packagist.org/packages/gkalmoukis/laravel-filters)[ RSS](/packages/gkalmoukis-laravel-filters/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-filters
===============

[](#laravel-filters)

Install
-------

[](#install)

Via composer

```
composer require gkalmoukis/laravel-filters

```

Usage
-----

[](#usage)

### Create filter class

[](#create-filter-class)

```
php artisan make:filter  --model=

```

Write your query in `handle()` method in `app\Filters\\`

> must exists as column in the model database table.

### Add the trait

[](#add-the-trait)

In your model import the `FilterByTrait` in scope.

```
use Gkalmoukis\LaravelFilters\Traits\FilterByTrait;

```

and use it

```
use FilterByTrait;

```

### Filter results

[](#filter-results)

```
$filters = request()->all();
$results = Model::filterBy($filters)->get();

```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/39299141?v=4)[Giorgos Kalmoukis](/maintainers/gkalmoukis)[@gkalmoukis](https://github.com/gkalmoukis)

---

Top Contributors

[![gkalmoukis](https://avatars.githubusercontent.com/u/39299141?v=4)](https://github.com/gkalmoukis "gkalmoukis (8 commits)")

### Embed Badge

![Health badge](/badges/gkalmoukis-laravel-filters/health.svg)

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

###  Alternatives

[ruflin/elastica

Elasticsearch Client

2.3k50.4M203](/packages/ruflin-elastica)[opensearch-project/opensearch-php

PHP Client for OpenSearch

15024.3M65](/packages/opensearch-project-opensearch-php)[mailerlite/laravel-elasticsearch

An easy way to use the official PHP ElasticSearch client in your Laravel applications.

934529.3k2](/packages/mailerlite-laravel-elasticsearch)[massive/search-bundle

Massive Search Bundle

721.4M13](/packages/massive-search-bundle)[outl1ne/nova-multiselect-filter

Multiselect filter for Laravel Nova.

45802.7k3](/packages/outl1ne-nova-multiselect-filter)[handcraftedinthealps/zendsearch

a general purpose text search engine written entirely in PHP 5

39921.0k35](/packages/handcraftedinthealps-zendsearch)

PHPackages © 2026

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