The zend-inputfilter component can be used to filter and validate generic sets
of input data. For instance, you could use it to filter $_GET
or $_POST
values, CLI arguments, etc.
Run the following to install this library:
$ composer require zendframework/zend-inputfilter
Browse the documentation online at https://docs.zendframework.com/zend-inputfilter/