PHPackages                             slash-dw/filter-kit - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. slash-dw/filter-kit

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

slash-dw/filter-kit
===================

SlashDw shared filter infrastructure for Laravel projects

v0.0.7(2w ago)024↓58.3%MITPHPPHP ^8.5CI passing

Since Apr 28Pushed 2w agoCompare

[ Source](https://github.com/slash-dw/filter-kit)[ Packagist](https://packagist.org/packages/slash-dw/filter-kit)[ RSS](/packages/slash-dw-filter-kit/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (9)Versions (11)Used By (0)

slash-dw/filter-kit
===================

[](#slash-dwfilter-kit)

A Laravel filtering pipeline package for Eloquent queries.

Requirements
------------

[](#requirements)

- PHP `^8.5`
- `slash-dw/core-kit` `^0.0.1`
- Laravel `^13.0`

Exact Laravel component constraints are defined in `composer.json`.

What This Package Provides
--------------------------

[](#what-this-package-provides)

- `BaseFilter` pipeline
- Attributes: `Filterable`, `JsonFilterable`, `MorphType`
- Builders: `FilterFromRequestBuilder`, `FilterReflector`
- Appliers: `StandardFilterApplier`, `RelationFilterApplier`, `JsonColumnApplier`
- Value objects: `FetchType`, `OrderClause`, `MultiFieldSearchConfig`

Quick Usage
-----------

[](#quick-usage)

```
use SlashDw\FilterKit\BaseFilter;
use SlashDw\FilterKit\Enum\Operator;
use SlashDw\FilterKit\FetchType;
use SlashDw\FilterKit\Filterable;

final class ItemFilter extends BaseFilter
{
    #[Filterable(columns: 'title', operator: Operator::ILIKE)]
    public ?string $q = null;
}

$filter = ItemFilter::fromRequest($request)
    ->setFetchType(FetchType::paginate('/items', 30));
```

Test Status
-----------

[](#test-status)

- PHPUnit: 25 tests / 102 assertions
- PHPStan: clean (package level: 5)
- Pint: passed

Dev Commands
------------

[](#dev-commands)

```
composer install
./vendor/bin/phpunit -c phpunit.xml.dist
./vendor/bin/phpstan analyse -c phpstan.neon.dist --memory-limit=1G
./vendor/bin/pint --format agent
```

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance97

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

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

Total

7

Last Release

15d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0541792c880c46a9d5eee49504ad45c4191d4a1c89c111a959d71268c83b61f8?d=identicon)[slash-dw](/maintainers/slash-dw)

---

Top Contributors

[![slash-dw](https://avatars.githubusercontent.com/u/279771030?v=4)](https://github.com/slash-dw "slash-dw (4 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/slash-dw-filter-kit/health.svg)

```
[![Health](https://phpackages.com/badges/slash-dw-filter-kit/health.svg)](https://phpackages.com/packages/slash-dw-filter-kit)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k51.0M7.4k](/packages/larastan-larastan)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45344.0k1](/packages/pressbooks-pressbooks)[spatie/laravel-export

Create a static site bundle from a Laravel app

670139.5k6](/packages/spatie-laravel-export)[api-platform/laravel

API Platform support for Laravel

59156.3k10](/packages/api-platform-laravel)[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

5019.3k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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