PHPackages                             koba/filter-builder-core - 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. koba/filter-builder-core

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

koba/filter-builder-core
========================

A library that allows you to apply filters to objects which can be stored as arrays.

1.0.1(2mo ago)039↓50%1MITPHPPHP ^8.1.0CI passing

Since Feb 23Pushed 2mo agoCompare

[ Source](https://github.com/kobavzw/filter-builder-core)[ Packagist](https://packagist.org/packages/koba/filter-builder-core)[ RSS](/packages/koba-filter-builder-core/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (1)

Filter Builder Core
===================

[](#filter-builder-core)

A flexible, type-safe PHP library for creating and applying filters to objects. Filter Builder Core allows you to define filterable fields, parse filter criteria from arrays (typically JSON/API requests), validate them, and execute complex filtering logic against your domain objects.

Features
--------

[](#features)

- **Type-Safe Filtering**: Built with PHP generics
- **Complex Logic Groups**: Support for nested AND/OR operations
- **Multiple Data Types**: Strings, numbers, and dropdown values
- **Relation Support**: Filter based on related objects with nested configurations
- **Comprehensive Validation**: Type checking, operation validation, and custom validation hooks
- **Internationalization**: Built-in English and Dutch translations with pluggable translation system
- **Extensible Architecture**: Strategy pattern allows custom implementations

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

[](#installation)

Install via Composer:

```
composer require koba/filter-builder-core
```

Quick Start
-----------

[](#quick-start)

```
