typomedia / fciv
File Checksum Integrity Verifier
7.4.0
2026-03-26 08:52 UTC
Requires
- php: >=8.2
- symfony/finder: ^7.0
- symfony/property-access: ^7.0
- symfony/serializer: ^7.0
Requires (Dev)
- infection/infection: ^0.32
- phpmd/phpmd: ^2.13
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.7
README
FCIV compatible lib for hash and verify files.
The Library is PSR-1, PSR-4, PSR-12 compliant.
Unit Tests have a Code Coverage of 100%!
Compatibility
- Windows
- POSIX (Linux, macOS, BSD, Solaris, etc.)
This library is fully compatible with fciv.exe v2.05.
Requirements
>= PHP 8.2
Dependencies
none
Install
composer require typomedia/fciv
Usage
Verifier
use Typomedia\Fciv\Verifier\Verifier; /** * @param string $algo md5, sha1, both * @param int|null $seconds timeout in seconds */ $verifier = new Verifier(); $result = $verifier->verify(file_get_contents('fciv.xml')); // Options: string $data, $exclude = [], $path = null
Hasher
use Typomedia\Fciv\Hasher\Hasher; /** * @param string $algo md5, sha1, both * @param array $types file name patterns to include * @param int|null $seconds timeout in seconds */ $hasher = new Hasher(); // Options: string $algo = 'md5|sha1|both', array $types = [] $hasher->setEntries('src'); // Options: string $path, array $exclude = [] $result = $hasher->getResult();
Test
composer test