aura/filter

Filters to validate and sanitize objects and arrays.

Package info

github.com/auraphp/Aura.Filter

pkg:composer/aura/filter

Statistics

Installs: 576 085

Dependents: 13

Suggesters: 1

Stars: 157

Open Issues: 3

6.0.0-beta1 2026-05-28 08:52 UTC

Requires

Requires (Dev)

Suggests

  • ext-iconv: To support UTF-8 in string-length filters.
  • ext-intl: To support IDNs in email filters.
  • ext-mbstring: To support UTF-8 in string-length filters.

Provides

None

Conflicts

None

Replaces

None

MIT c8ae62295860d4002c446a375f6a313c334b9687

validatorvalidationfiltersanitizevalidate


README

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

Foreword

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.

Alternatively, download a release or clone this repository, then require or include its autoload.php file.

Quality

👁 Scrutinizer Code Quality
👁 codecov
👁 Continuous Integration

To run the unit tests at the command line, issue composer install and then vendor/bin/phpunit at the package root. This requires Composer to be available as composer.

This library attempts to comply with PSR-1, PSR-2, and PSR-4. If you notice compliance oversights, please send a patch via pull request.

Community

To ask questions, provide feedback, or otherwise communicate with the Aura community, please join our Google Group, follow @auraphp on Twitter, or chat with us on #auraphp on Freenode.

Documentation

This package is fully documented here.