academy01 / input-sanitizer
PHP Package to Sanitizes a String or Array to prevent common Vulnerabilities
dev-main
2024-03-03 09:54 UTC
Requires
- php: ^8.2
This package is auto-updated.
Last update: 2025-05-01 00:17:21 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.