laminas/laminas-validator
Validation component for PHP and Laminas applications. Provides a wide range of ready-to-use validators (strings, numbers, dates, files, and more), consistent error messages, and an extensible API to create custom validators and input filtering rules.
Laminas comes with a set of classes for validating both files and uploaded files, such as file size validation and CRC checking.
NOTE: Validation Argument
All the File validators' isValid() methods support both a file path string or a $_FILES array as the supplied argument.
When a $_FILES array is passed in, the tmp_name is used for the file path.
How can I help you explore Laravel packages today?