PHP library for reading and understanding SSL certificates.

Maintainers

Details

github.com/punkstar/ssl

Source

Issues

Fund package maintenance!
trackssl.com

0.5.1 2017-10-17 08:45 UTC

This package is auto-updated.

Last update: 2024-11-11 15:10:08 UTC


README

Build Status Scrutinizer Code Quality Code Coverage

This is a library for easily reading and understanding SSL certificates using PHP.

Installation

composer require punkstar/ssl

Usage

<?php
require_once __DIR__.'/vendor/autoload.php';
use Punkstar\Ssl\Reader;

$reader = new Reader();
$certificate = $reader->readFromUrl("https://github.com");

printf("Name: %s\n", $certificate->certName());
printf("Valid To: %s\n", $certificate->validTo()->format('r'));
printf("Valid From: %s\n", $certificate->validFrom()->format('r'));