PHPackages                             sledgehammer/filters - 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. sledgehammer/filters

ActiveLibrary

sledgehammer/filters
====================

Sledgehammer Filter module. Usefull add-ons using Sledgehammer\\filter()

12.11.0(13y ago)225CC-BY-SA-3.0PHP

Since Oct 12Pushed 13y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (3)Used By (0)

Sledgehammer Filters
====================

[](#sledgehammer-filters)

Adds additional filters compatible with the \\Sledgehammer\\filter() function.

A filter is a [callable](http://php.net/manual/en/language.types.callable.php) that takes only 1 argument (as input) and returns the filterd output.

The buildin functions "addslashes" and "urlencode" for example are compatible with sledgehammer's filter "interface".

Examples
--------

[](#examples)

```
$encoded = filter($myData, 'urlencode'); // Using a global function.

$db = new PDO('sqlite::memory:');
$quoted = filter($myData, array($db, 'quote')); // Using a function in a object/class.

$slug = filter($myData, new SlugFilter()); /// Using a object with an __invoke() method.

$filter = function ($data) { return substr($data, 0, 10); };
$truncated = filter($myData, $filter); // Using a closure.

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Total

2

Last Release

4944d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/207248?v=4)[Bob Fanger](/maintainers/bfanger)[@bfanger](https://github.com/bfanger)

---

Top Contributors

[![bfanger](https://avatars.githubusercontent.com/u/207248?v=4)](https://github.com/bfanger "bfanger (12 commits)")

### Embed Badge

![Health badge](/badges/sledgehammer-filters/health.svg)

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

PHPackages © 2026

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