academy01/input-sanitizer

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

dev-main 2024-03-03 09:54 UTC

This package is auto-updated.

Last update: 2024-09-03 10:57:00 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.

License

MIT