PHPackages                             refinephp/laravel-refine - 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. refinephp/laravel-refine

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

refinephp/laravel-refine
========================

A Laravel package for elegant and efficient query filtering and sorting.

v1.1.0(2mo ago)23.2k—6.7%MITPHPPHP ^8.0CI passing

Since May 16Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/refinephp/laravel-refine)[ Packagist](https://packagist.org/packages/refinephp/laravel-refine)[ RSS](/packages/refinephp-laravel-refine/feed)WikiDiscussions main Synced 1mo ago

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

Laravel Refine
==============

[](#laravel-refine)

Laravel Refine is a package that provides elegant and efficient query filtering and sorting for Laravel applications.

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

[](#installation)

You can install the package via Composer:

```
composer require refinephp/laravel-refine
```

```
php artisan vendor:publish --tag=laravel-refine
```

Basic Usage
-----------

[](#basic-usage)

### Filtering

[](#filtering)

To add filtering capabilities to your model, you can simply use the `Filterable` trait in your model:

```
use Refinephp\LaravelRefine\Traits\Filterable;

class User extends Model
{
    use Filterable;
}
```

Following that, you can use the `filter` method to filter your query results in your controller:

```
use App\Models\User;

class UserController extends Controller
{
    public function index()
    {
        return User::filter()->get();
    }
}
```

From your request, you can pass the filter parameters as query string parameters. For example:

```
GET /users?filters[name][$eq]=John&filters[age][$eq]=30
```

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance88

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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 ~307 days

Total

2

Last Release

60d ago

### Community

Maintainers

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

---

Top Contributors

[![ricdizio](https://avatars.githubusercontent.com/u/22679695?v=4)](https://github.com/ricdizio "ricdizio (11 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/refinephp-laravel-refine/health.svg)

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

###  Alternatives

[mehradsadeghi/laravel-filter-querystring

Filter your queries based on url query string parameters like a breeze.

169118.2k](/packages/mehradsadeghi-laravel-filter-querystring)[pos-lifestyle/laravel-nova-date-range-filter

A Laravel Nova date range filter.

16179.1k](/packages/pos-lifestyle-laravel-nova-date-range-filter)[omure/scout-advanced-meilisearch

Laravel Scout extension that allows to use meilisearch advanced features as well as has an extended collection driver for testing purposes.

123.9k](/packages/omure-scout-advanced-meilisearch)

PHPackages © 2026

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