PHPackages                             leaditin/filter - 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. leaditin/filter

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

leaditin/filter
===============

Programmatically filter and normalize data and files.

1.0.2(1y ago)013MITPHPPHP ^7.1 || ^8.0

Since Dec 27Pushed 1y agoCompare

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

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

Filter
======

[](#filter)

Programmatically filter and normalize data and files.

[![Build Status](https://camo.githubusercontent.com/977b66ad78f56be94d71bbf4e88df2d377d2ee63d02bf01e7281cffca9c50c3f/68747470733a2f2f7472617669732d63692e6f72672f6c6561646974696e2f66696c7465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/leaditin/filter)[![Code Quality](https://camo.githubusercontent.com/e11c48b20b896a85cd562ae33be824380d4b2ebfa34f6ef774516f021388f22d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c6561646974696e2f66696c7465722e737667)](https://scrutinizer-ci.com/g/leaditin/filter)[![Code Coverage](https://camo.githubusercontent.com/68fd88fde8a542ff3209aeee51e853edb9d1bad5db3ac7e1acfbc5961fd63425/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c6561646974696e2f66696c7465722e737667)](https://scrutinizer-ci.com/g/leaditin/filter/code-structure)[![Latest Version](https://camo.githubusercontent.com/d92ed8868bbac1d7e6060445af6bfb99534db37885af5c2d323e082e2c2a8090/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6561646974696e2f66696c7465722e737667)](https://packagist.org/packages/leaditin/filter)[![PDS Skeleton](https://camo.githubusercontent.com/a8ce1f2a7b71f101b18fc0393ba5bf89b7a5b1f9d08a31b658ca0eab0064c0f6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7064732d736b656c65746f6e2d626c75652e737667)](https://github.com/php-pds/skeleton)

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

[](#installation)

The preferred method of installation is via [Composer](http://getcomposer.org/). Run the following command to install the latest version of a package and add it to your project's `composer.json`:

```
composer require leaditin/filter
```

Usage
-----

[](#usage)

**Camel Case**

```
use \Leaditin\Filter\CamelCase;

$filter = new CamelCase();
echo $filter->filter('my-property');
```

**Humanize**

```
use \Leaditin\Filter\Humanize;

$filter = new Humanize();
echo $filter->filter('my-property');
```

**Plural**

```
use \Leaditin\Filter\Plural;

$filter = new Plural();
echo $filter->filter('property');
```

**Singular**

```
use \Leaditin\Filter\Singular;

$filter = new Singular();
echo $filter->filter('properties');
```

**Underscore**

```
use \Leaditin\Filter\Underscore;

$filter = new Underscore();
echo $filter->filter('my property');
```

Credits
-------

[](#credits)

- [All Contributors](../../contributors)

License
-------

[](#license)

Released under MIT License - see the [License File](LICENSE) for details.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

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

Total

2

Last Release

591d ago

PHP version history (2 changes)1.0.1PHP ^7.1

1.0.2PHP ^7.1 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/05ace5e8872f342734c0424a5d7e6436c39386cf978d4c1675d3d4a9af2fecdb?d=identicon)[igorvuckovic](/maintainers/igorvuckovic)

---

Top Contributors

[![igorvuckovic](https://avatars.githubusercontent.com/u/25580555?v=4)](https://github.com/igorvuckovic "igorvuckovic (2 commits)")

---

Tags

lowercaseuppercasefiltercamelcaseleaditin

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/leaditin-filter/health.svg)

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

###  Alternatives

[clue/stream-filter

A simple and modern approach to stream filtering in PHP

1.7k261.7M7](/packages/clue-stream-filter)[laminas/laminas-filter

Programmatically filter and normalize data and files

9528.0M150](/packages/laminas-laminas-filter)[friendsofcake/search

CakePHP Search plugin using PRG pattern

1742.0M37](/packages/friendsofcake-search)[htmlawed/htmlawed

Official htmLawed PHP library for HTML filtering

401.1M9](/packages/htmlawed-htmlawed)[outl1ne/nova-multiselect-filter

Multiselect filter for Laravel Nova.

45802.7k3](/packages/outl1ne-nova-multiselect-filter)[outl1ne/nova-detached-filters

This Laravel Nova package allows you to detach filters from the filter dropdown

64343.5k](/packages/outl1ne-nova-detached-filters)

PHPackages © 2026

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