laminas-validator provides a set of commonly needed validators. It also provides a simple validator chaining mechanism by which multiple validators may be applied to a single datum in a user-defined order.
Run the following to install this library:
$ composer require laminas/laminas-validator
Browse the documentation online at https://docs.laminas.dev/laminas-validator/