Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

79 lines (47 sloc) 1.838 kb
orphan:

Sha1

Zend\Validator\File\Sha1 allows you to validate if a given file's hashed contents matches the supplied sha1 hash(es). It is subclassed from the :ref:`Hash validator <zend.validator.file.hash>` to provide a convenient validator that only supports the sha1 algorithm.

Note

This validator requires the Hash extension from PHP with the sha1 algorithm.

Supported Options

The following set of options are supported:

  • hash (string)

    Hash to test the file against.

Usage Examples

Public Methods

Jump to Line
Something went wrong with that request. Please try again.