manzadey/certificate

Get information about the secure connection certificate for a domain

v1.0 2020-08-24 23:04 UTC

This package is auto-updated.

Last update: 2024-04-25 21:50:28 UTC


README

Get information about the secure connection certificate for a domain

Install

composer require manzadey/certificate

Usage

Create class Certificate:

use Manzadey\Certificate\Certificate;

$info = new Certificate('google.com');

Get all info about certificate:

$info->all(); // array

Issuer:

$info->issuer(); // Google Trust Services

Domain:

$info->domain(); // ssl://google.com:443

Valid From:

$info->validFrom(); // 11.08.2020 11:53:40

Valid To:

$info->validTo(); // 03.11.2020 11:53:40

Experation date:

$info->experationDate(); // 84

Expires date

$info->expiresDate(); // 70