PHPackages                             jgswift/kfiltr - 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. jgswift/kfiltr

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

jgswift/kfiltr
==============

PHP 5.5+ filtering pattern implementation

0.1.2(11y ago)14404MITPHPPHP &gt;=5.5

Since Sep 11Pushed 11y ago1 watchersCompare

[ Source](https://github.com/jgswift/kfiltr)[ Packagist](https://packagist.org/packages/jgswift/kfiltr)[ RSS](/packages/jgswift-kfiltr/feed)WikiDiscussions master Synced 1mo ago

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

kfiltr
======

[](#kfiltr)

PHP 5.5+ filtering pattern implementation

[![Build Status](https://camo.githubusercontent.com/baec4c075aaadaded7d47d818a0d46383fb0cf53260d2bcc536deba9e424a635/68747470733a2f2f7472617669732d63692e6f72672f6a6773776966742f6b66696c74722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/jgswift/kfiltr)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/b3806fa14fa90a87221e444c950fe8916dead30cb0d99fa6781d317301d836f7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a6773776966742f6b66696c74722f6261646765732f7175616c6974792d73636f72652e706e673f733d38663834633664663562643733373431663733633737663539393234623130306439316562623137)](https://scrutinizer-ci.com/g/jgswift/kfiltr/)[![Latest Stable Version](https://camo.githubusercontent.com/1c99d0db40bb5595a6911ab966176b6f958eab8a218da5a2c81838fa835fe1af/68747470733a2f2f706f7365722e707567782e6f72672f6a6773776966742f6b66696c74722f762f737461626c652e737667)](https://packagist.org/packages/jgswift/kfiltr)[![License](https://camo.githubusercontent.com/c0788a86448802e07ae5d9603c169597cd8dcccb8eea1a9e4e9a9c4bfb753e68/68747470733a2f2f706f7365722e707567782e6f72672f6a6773776966742f6b66696c74722f6c6963656e73652e737667)](https://packagist.org/packages/jgswift/kfiltr)[![Coverage Status](https://camo.githubusercontent.com/592ba8942390b1c13a77bc0ff4b95c2a8416b232b9e4d4d5df22942ed9ce69d2/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6a6773776966742f6b66696c74722f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/jgswift/kfiltr?branch=master)

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

[](#installation)

Install via cli using [composer](https://getcomposer.org/):

```
php composer.phar require jgswift/kfiltr:0.1.*
```

Install via composer.json using [composer](https://getcomposer.org/):

```
{
    "require": {
        "jgswift/kfiltr": "0.1.*"
    }
}
```

Description
-----------

[](#description)

Kfiltr provides a set of generic traits that handle filtering, mapping, and hooking in a domain-agnostic way.
Interfaces are also provided to broadly describe the intended implementation, however they are required to use this package.

Dependency
----------

[](#dependency)

- php 5.5+

Usage
-----

[](#usage)

### Filters

[](#filters)

A minimal Filter example. The execute method does not enforce any particular signature and may define whatever arguments needed

```
