Download the PHP package componenta/file-hasher without Composer
On this page you can find all versions of the php package componenta/file-hasher. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download componenta/file-hasher
More information about componenta/file-hasher
Files in componenta/file-hasher
Download componenta/file-hasher
More information about componenta/file-hasher
Files in componenta/file-hasher
Vendor componenta
Package file-hasher
Short Description File hashing contract and default implementation
License MIT
Package file-hasher
Short Description File hashing contract and default implementation
License MIT
Please rate this library. Is it a good library?
Informations about the package file-hasher
Componenta File Hasher
File hashing contract and default implementation.
Use this package when a service needs to hash a file by filename and receive file-specific exceptions for invalid paths.
Installation
Usage
FileHasher exposes the selected algorithm as read-only public state:
withAlgorithm() returns a new immutable instance.
Contract
Exceptions
All package exceptions are named with a File* prefix and implement FileHasherExceptionInterface.
| Exception | When it is thrown |
|---|---|
FileNotFoundException |
The path does not exist. |
FileNotReadableException |
The path exists but is not a readable regular file. |
FileHashFailedException |
PHP failed to compute the file hash. |
Related Packages
| Package | Why it matters here |
|---|---|
componenta/hasher |
Hashes strings and PSR-7 streams. |
componenta/password |
Hashes passwords with PHP's dedicated password API. |
All versions of file-hasher with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.4
The package componenta/file-hasher contains the following files
Loading the files please wait ...