PHP code example of manzadey / certificate

1. Go to this page and download the library: Download manzadey/certificate 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/ */

    

manzadey / certificate example snippets


use Manzadey\Certificate\Certificate;

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

$info->all(); // array

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

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

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

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

$info->experationDate(); // 84

$info->expiresDate(); // 70