xvilo/crt-sh-api

此包最新版本(v0.1.0)没有提供许可证信息。

crt.sh客户端,通过证书透明度日志进行搜索

v0.1.0 2022-09-18 13:27 UTC

This package is auto-updated.

Last update: 2024-09-18 17:32:41 UTC


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;
}