roave/signature
最新稳定版本:1.9.0
Composer 安装命令:
composer require roave/signature
包简介
Sign and verify stuff
README 文档
README
Sign and validate signed files made easy.
Note: this is not a cryptographic signing library.
Installation
The suggested installation method is via composer:
$ composer require roave/signature
Usage examples
Signing a file
// Creating a signer $signer = new \Roave\Signature\FileContentSigner( new \Roave\Signature\Encoder\Sha1SumEncoder() ); // It'll give you a signature to the provided code content $signature = $signer->sign(file_get_contents('/var/tmp/file.php'));
Validating a signed file
// Creating a signer checker $signer = new \Roave\Signature\FileContentChecker( new \Roave\Signature\Encoder\Sha1SumEncoder() ); // It'll validate the signature on file content $signer->check(file_get_contents('/var/tmp/signed-file.php'));
统计信息
- 总下载量: 9.8M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 44
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04