PHPackages                             academy01/input-sanitizer - 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. academy01/input-sanitizer

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

academy01/input-sanitizer
=========================

PHP Package to Sanitizes a String or Array to prevent common Vulnerabilities

16PHP

Since Mar 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mhnobakht/input-sanitizer)[ Packagist](https://packagist.org/packages/academy01/input-sanitizer)[ RSS](/packages/academy01-input-sanitizer/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Input Sanitizer
===============

[](#input-sanitizer)

Sanitizes a string or array to prevent common vulnerabilities.

Installation
------------

[](#installation)

Use the Composer to install `Input-Sanitizer`.

```
composer require academy01/input-sanitizer
```

Usage
-----

[](#usage)

add it to your project and use the commands.

```
require 'vendor/autoload.php';
```

Commands
--------

[](#commands)

to sanitize the string or array use this, and pass the input:

```
InputSanitizer::sanitize($input);
```

Contributing
------------

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/98ce2ef28d2083496859584b153a9dfeee2298e6b2ed3e0e96c41b28ca1aff91?d=identicon)[mhnobakht](/maintainers/mhnobakht)

---

Top Contributors

[![mhnobakht](https://avatars.githubusercontent.com/u/80899303?v=4)](https://github.com/mhnobakht "mhnobakht (2 commits)")

### Embed Badge

![Health badge](/badges/academy01-input-sanitizer/health.svg)

```
[![Health](https://phpackages.com/badges/academy01-input-sanitizer/health.svg)](https://phpackages.com/packages/academy01-input-sanitizer)
```

###  Alternatives

[marcosh/php-validation-dsl

A DSL for validating data in a functional fashion

483.9k](/packages/marcosh-php-validation-dsl)

PHPackages © 2026

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