xvilo/crt-sh-api
此包最新版本(v0.1.0)没有提供许可证信息。
crt.sh客户端,通过证书透明度日志进行搜索
v0.1.0
2022-09-18 13:27 UTC
Requires
- php: ^8.1
- friendsofphp/php-cs-fixer: ^3.11
- php-http/client-common: ^2.5
- php-http/client-implementation: ^1.0
- php-http/discovery: ^1.14
- psr/http-message: ^1.0
Requires (Dev)
- nyholm/psr7: ^1.5
- symfony/http-client: ^6.1
README
这是一个围绕https://crt.sh证书透明度网站的API客户端/包装器。它用PHP编写,并以PSR HTTP客户端组件为基础。
安装
您可以通过以下命令使用composer安装此库
$ composer require xvilo/crt-sh-api
用法
示例用法可能是
<?php declare(strict_types=1); include 'vendor/autoload.php'; $client = new \Xvilo\CrtShApi\CrtSh(); foreach ($client->search('google.com') as $result) { echo $result->getCommonName() . ' ' . $result->getNotBefore()->format('Y-m-d') . PHP_EOL; }