PHPackages                             jdrich/masticate - 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. jdrich/masticate

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

jdrich/masticate
================

Consume and contain request data

1.0.0(11y ago)0113MITPHP

Since Dec 4Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Masticate

About
-----

[](#about)

Masticate is an MIT licensed PHP input filtering library that wraps the dangerous PHP superglobals ($\_SERVER, $\_GET, $\_POST, $\_FILES) to enforce some level of data sanitation.

Uses
----

[](#uses)

Masticate (destroys superglobals)

```
$filter = Filter::masticate();

```

Register (preserves superglobals)

```
$filter = new Filter(['get' => $_GET]); $filter->register(['post' =>
$_POST]);

```

Retreiving

```
if($filter->has('get','param')) {
    $foo = $filter->get('param');
}

```

Filtering

```
$bar = $filter->get('param', 'SANITIZE_EMAIL');

```

Purpose
-------

[](#purpose)

Masticate wraps the superglobals in a very simple layer of OO which implements the build-in PHP filter extension.

Author
------

[](#author)

Jonathan Rich

Feedback
--------

[](#feedback)

Submit bugs to .

License
-------

[](#license)

Please see the file called LICENSE.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

4181d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9da058bc0cd7579f5689f01d539f8af59831ca742ca1da53f3a4c938d89e736c?d=identicon)[jdrich](/maintainers/jdrich)

---

Top Contributors

[![jdrich](https://avatars.githubusercontent.com/u/1329233?v=4)](https://github.com/jdrich "jdrich (1 commits)")

### Embed Badge

![Health badge](/badges/jdrich-masticate/health.svg)

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

PHPackages © 2026

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