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;
$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();