xvilo / crt-sh-api
There is no license information available for the latest version (v0.1.0) of this package.
crt.sh client, search through Certificate Transparency logs
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
This is a small API client/wrapper around the https://crt.sh Certificate Transparency website. It's written in PHP and uses the PSR HTTP client component as a base.
Installation
You can install this library through composer, using the following command:
$ composer require xvilo/crt-sh-api
Usage
Example usage would be:
<?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; }