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\Validator\File\ExcludeMimeType checks the MIME type of files. It will
assert false when a given file matches any of the defined MIME types.
This validator is inversely related to the MimeType validator; please refer to that validator's documentation for full options and usage examples.
How can I help you explore Laravel packages today?