The laminas-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 laminas/laminas-inputfilter
Browse the documentation online at https://docs.laminas.dev/laminas-inputfilter/