PHPackages                             paragonie/ionizer - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. paragonie/ionizer

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

paragonie/ionizer
=================

Powerful input value filtering for PHP applications

v2.0.0(7mo ago)353.5k↓80%6[1 issues](https://github.com/paragonie/ionizer/issues)3ISCPHPPHP ^8.1CI failing

Since Feb 5Pushed 7mo ago4 watchersCompare

[ Source](https://github.com/paragonie/ionizer)[ Packagist](https://packagist.org/packages/paragonie/ionizer)[ RSS](/packages/paragonie-ionizer/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (9)Dependencies (2)Versions (12)Used By (3)

Ionizer
=======

[](#ionizer)

[![Build Status](https://github.com/paragonie/ionizer/actions/workflows/ci.yml/badge.svg)](https://github.com/paragonie/ionizer/actions)[![Psalm Status](https://github.com/paragonie/ionizer/actions/workflows/psalm.yml/badge.svg)](https://github.com/paragonie/ionizere/actions)[![Latest Stable Version](https://camo.githubusercontent.com/b69185ecc3b2869743a77435facdcf18ad787128595114442ec7888bc0e5a868/68747470733a2f2f706f7365722e707567782e6f72672f70617261676f6e69652f696f6e697a65722f762f737461626c65)](https://packagist.org/packages/paragonie/ionizer)[![Latest Unstable Version](https://camo.githubusercontent.com/a3d59d3a75db592987382df972e3ba4902459d87c2ba96056d142645b26db4ed/68747470733a2f2f706f7365722e707567782e6f72672f70617261676f6e69652f696f6e697a65722f762f756e737461626c65)](https://packagist.org/packages/paragonie/ionizer)[![License](https://camo.githubusercontent.com/41116620e1a29308237708107d5d3da07b4ca013b4be31f9f651dbc4e6b85f64/68747470733a2f2f706f7365722e707567782e6f72672f70617261676f6e69652f696f6e697a65722f6c6963656e7365)](https://packagist.org/packages/paragonie/ionizer)[![Downloads](https://camo.githubusercontent.com/062b676b940a6e5a726da687f087beebeb6875edd8f8107bcc445a64d33bd70f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70617261676f6e69652f696f6e697a65722e737667)](https://packagist.org/packages/paragonie/ionizer)

Ionizer provides strict typing and input validation for dynamic inputs (i.e. HTTP request parameters). **Requires PHP 8.1 or higher.**

For PHP 7 and 8.0 support, please refer to the [v1.x](https://github.com/paragonie/ionizer/tree/v1.x) branch.

What is Ionizer?
----------------

[](#what-is-ionizer)

Ionizer is a structured input filtering system ideal for HTTP form data.

### Why is Ionizer important?

[](#why-is-ionizer-important)

Aside from the benefits of being able to strictly type your applications that accept user input, Ionizer makes it easy to mitigate [some NoSQL injection techniques](https://www.php.net/manual/en/mongodb.security.request_injection.php). Learn more about [preventing NoSQL injection with Ionizer](docs/nosql-injection-prevention.md).

Installing
----------

[](#installing)

Get Composer, then run the following:

```
composer require paragonie/ionizer

```

Usage
-----

[](#usage)

```
