zendframework/zend-validator
Powerful validation library from Zend Framework for PHP apps. Provides a wide range of reusable validators, input filtering, and custom rule support with clear error messages. Integrates easily into forms and domain validation workflows.
Zend\Validator\File\IsCompressed checks if a file is a compressed archive,
such as zip or gzip. This validator is based on the
MimeType validator, and supports the same methods and options.
The default list of compressed file MIME types can be found in the source code.
Please refer to the MimeType validator for options and public methods.
$validator = new \Zend\Validator\File\IsCompressed();
if ($validator->isValid('./myfile.zip')) {
// file is valid
}
How can I help you explore Laravel packages today?