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\ExcludeExtension checks the extension of files. It will
assert false when a given file matches any of the defined extensions.
This validator is inversely related to the Extension validator; please refer to that validator for full options and usage examples.
How can I help you explore Laravel packages today?