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%!
- Windows
- POSIX (Linux, macOS, BSD, Solaris, etc.)
This library is fully compatible with fciv.exe
v2.05.
>= PHP 7.4
none
composer require typomedia/fciv
use Typomedia\Fciv\Verifier\Verifier;
$verifier = new Verifier(); // Options: string $algo = 'md5|sha1|both'
$result = $verifier->verify(file_get_contents('fciv.xml')); // Options: string $data, $exclude = [], $path = null
use Typomedia\Fciv\Hasher\Hasher;
$hasher = new Hasher(); // Options: string $algo = 'md5|sha1|both', array $types = []
$hasher->setEntries('src'); // Options: string $path, array $exclude = []
$result = $hasher->getResult();