PHP code example of typomedia / fciv

1. Go to this page and download the library: Download typomedia/fciv library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

typomedia / fciv example snippets


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

use Typomedia\Fciv\Hasher\Hasher;
/**
 * @param string $algo md5, sha1, both
 * @param array $types file name patterns to ray $types = []
$hasher->setEntries('src'); // Options: string $path, array $exclude = []
$result = $hasher->getResult();