academy01 / input-sanitizer
PHP Package to Sanitizes a String or Array to prevent common Vulnerabilities
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/academy01/input-sanitizer
Requires
- php: ^8.2
 
This package is auto-updated.
Last update: 2025-10-31 00:25:51 UTC
README
Sanitizes a string or array to prevent common vulnerabilities.
Installation
Use the Composer to install Input-Sanitizer.
composer require academy01/input-sanitizer
Usage
add it to your project and use the commands.
require 'vendor/autoload.php';
Commands
to sanitize the string or array use this, and pass the input:
InputSanitizer::sanitize($input);
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.