PHP code example of xvilo / crt-sh-api
1. Go to this page and download the library: Download xvilo/crt-sh-api library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
xvilo / crt-sh-api example snippets
declare(strict_types=1);
rtSh();
foreach ($client->search('google.com') as $result) {
echo $result->getCommonName() . ' ' . $result->getNotBefore()->format('Y-m-d') . PHP_EOL;
}