承接 typomedia/fciv 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

typomedia/fciv

Composer 安装命令:

composer require typomedia/fciv

包简介

File Checksum Integrity Verifier

README 文档

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

统计信息

  • 总下载量: 1.87k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-10-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固