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

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

aura/filter
===========

Filters to validate and sanitize objects and arrays.

2.3.1(9y ago)172576.5k↓45.7%33[3 issues](https://github.com/auraphp/Aura.Filter/issues)11BSD-2-ClausePHPPHP &gt;=5.4.0CI failing

Since Nov 29Pushed 1mo ago17 watchersCompare

[ Source](https://github.com/auraphp/Aura.Filter)[ Packagist](https://packagist.org/packages/aura/filter)[ Docs](https://github.com/auraphp/Aura.Filter)[ RSS](/packages/aura-filter/feed)WikiDiscussions 6.x Synced 3d ago

READMEChangelog (10)Dependencies (2)Versions (24)Used By (11)

Aura.Filter
===========

[](#aurafilter)

This package provides tools to validate and sanitize objects and arrays.

Foreword
--------

[](#foreword)

### Installation

[](#installation)

This library requires PHP 7.2 or later; we recommend using the latest available version of PHP as a matter of principle. It has no userland dependencies.

It is installable and autoloadable via Composer as [aura/filter](https://packagist.org/packages/aura/filter).

Alternatively, [download a release](https://github.com/auraphp/Aura.Filter/releases) or clone this repository, then require or include its *autoload.php* file.

### Quality

[](#quality)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/877de1d6f384c5ed2dea60c3743d4490a0ca6e0fa7e80399c9407c7c36766d1b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f617572617068702f417572612e46696c7465722f6261646765732f7175616c6974792d73636f72652e706e673f623d342e78)](https://scrutinizer-ci.com/g/auraphp/Aura.Filter/)[![codecov](https://camo.githubusercontent.com/1776b493bcb7ba0bb798442d4783c0885505902a481492c97299f5cbd41b71ec/68747470733a2f2f636f6465636f762e696f2f67682f617572617068702f417572612e46696c7465722f6272616e63682f342e782f67726170682f62616467652e7376673f746f6b656e3d554153446f754c787963)](https://codecov.io/gh/auraphp/Aura.Filter)[![Continuous Integration](https://github.com/auraphp/Aura.Filter/actions/workflows/continuous-integration.yml/badge.svg?branch=4.x)](https://github.com/auraphp/Aura.Filter/actions/workflows/continuous-integration.yml)

To run the unit tests at the command line, issue `composer install` and then `vendor/bin/phpunit` at the package root. This requires [Composer](http://getcomposer.org/) to be available as `composer`.

This library attempts to comply with [PSR-1](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md), [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md), and [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md). If you notice compliance oversights, please send a patch via pull request.

### Community

[](#community)

To ask questions, provide feedback, or otherwise communicate with the Aura community, please join our [Google Group](http://groups.google.com/group/auraphp), follow [@auraphp on Twitter](http://twitter.com/auraphp), or chat with us on #auraphp on Freenode.

Documentation
-------------

[](#documentation)

This package is fully documented [here](./docs/index.md).

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance60

Regular maintenance activity

Popularity54

Moderate usage in the ecosystem

Community37

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~136 days

Total

22

Last Release

38d ago

Major Versions

1.x-dev → 2.0.0-alpha12015-07-02

2.3.1 → 3.x-dev2022-02-05

2.x-dev → 4.x-dev2025-11-25

4.x-dev → 5.x-dev2025-11-25

5.x-dev → 6.0.0-beta12026-05-28

PHP version history (4 changes)1.0.0-beta1PHP &gt;=5.4.0

3.x-devPHP &gt;=5.6.0

4.x-devPHP ^7.2 || ^8.0

6.0.0-beta1PHP ^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25754?v=4)[Paul M. Jones](/maintainers/pmjones)[@pmjones](https://github.com/pmjones)

![](https://www.gravatar.com/avatar/29dba0e6add8d89fd3fc6126b213d5d2f57538ea78318963025d6ea98db34161?d=identicon)[harikt](/maintainers/harikt)

---

Top Contributors

[![harikt](https://avatars.githubusercontent.com/u/120454?v=4)](https://github.com/harikt "harikt (91 commits)")[![cordoval](https://avatars.githubusercontent.com/u/328359?v=4)](https://github.com/cordoval "cordoval (53 commits)")[![koriym](https://avatars.githubusercontent.com/u/529021?v=4)](https://github.com/koriym "koriym (18 commits)")[![jakejohns](https://avatars.githubusercontent.com/u/174708?v=4)](https://github.com/jakejohns "jakejohns (15 commits)")[![taiiiraaa](https://avatars.githubusercontent.com/u/3821458?v=4)](https://github.com/taiiiraaa "taiiiraaa (5 commits)")[![mivanov93](https://avatars.githubusercontent.com/u/12671643?v=4)](https://github.com/mivanov93 "mivanov93 (2 commits)")[![Rayne](https://avatars.githubusercontent.com/u/1098733?v=4)](https://github.com/Rayne "Rayne (2 commits)")[![pborreli](https://avatars.githubusercontent.com/u/77759?v=4)](https://github.com/pborreli "pborreli (1 commits)")[![auroraeosrose](https://avatars.githubusercontent.com/u/282573?v=4)](https://github.com/auroraeosrose "auroraeosrose (1 commits)")[![ThomasWunderlich](https://avatars.githubusercontent.com/u/796958?v=4)](https://github.com/ThomasWunderlich "ThomasWunderlich (1 commits)")[![chrissound](https://avatars.githubusercontent.com/u/1499652?v=4)](https://github.com/chrissound "chrissound (1 commits)")[![designermonkey](https://avatars.githubusercontent.com/u/221344?v=4)](https://github.com/designermonkey "designermonkey (1 commits)")[![dg](https://avatars.githubusercontent.com/u/194960?v=4)](https://github.com/dg "dg (1 commits)")[![dhaaker](https://avatars.githubusercontent.com/u/245347?v=4)](https://github.com/dhaaker "dhaaker (1 commits)")[![dperjar](https://avatars.githubusercontent.com/u/1562767?v=4)](https://github.com/dperjar "dperjar (1 commits)")[![geissler](https://avatars.githubusercontent.com/u/535572?v=4)](https://github.com/geissler "geissler (1 commits)")

---

Tags

auracomponentfilterphpsanitizationstandalonevalidationvalidatorvalidatorvalidationfiltervalidatesanitize

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[htmlawed/htmlawed

Official htmLawed PHP library for HTML filtering

481.2M16](/packages/htmlawed-htmlawed)[wandersonwhcr/romans

A Simple PHP Roman Numerals Library

45412.8k8](/packages/wandersonwhcr-romans)[runn/validation

Runn Me! Validation and Sanitization Library

1027.6k2](/packages/runn-validation)[phpsanitization/phpsanitization

Modern PHP Sanitization Library

181.8k](/packages/phpsanitization-phpsanitization)

PHPackages © 2026

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