Skip to content
/ ssl Public

📚 PHP library for reading and understanding SSL certificates

License

Notifications You must be signed in to change notification settings

punkstar/ssl

Repository files navigation

Reading SSL Certificates

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')); 

About

📚 PHP library for reading and understanding SSL certificates

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages