manzadey / certificate
Get information about the secure connection certificate for a domain
Fund package maintenance!
Open Collective
Requires
- php: ^7.2.5
This package is auto-updated.
Last update: 2024-10-25 22:50:24 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