PHP code example of jrbarros / ssl-check-php

1. Go to this page and download the library: Download jrbarros/ssl-check-php 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/ */

    

jrbarros / ssl-check-php example snippets


[
    "is_valid"    => true,
    "created_at" => "2019-04-04T00:00:00Z",
    "valid_until" => "2020-04-04T12:00:00Z"
];

[
    "symfony.com" => [
               "is_valid"    => true,
               "created_at" => "2019-04-04T00:00:00Z",
               "valid_until" => "2020-04-04T12:00:00Z"
           ],
  
    "laravel.com" => [
               "is_valid"    => true,
               "created_at" => "2019-11-19T00:00:00Z",
               "valid_until" => "2020-10-09T12:00:00Z"
           ]
];

[
     "symfony.com" => [
             "is_valid"    => true,
             "created_at" => "2019-04-04T00:00:00Z",
             "valid_until" => "2020-04-04T12:00:00Z"
         ],

     "laravel.com" => [
             "is_valid"    => true,
             "created_at" => "2019-11-19T00:00:00Z",
             "valid_until" => "2020-10-09T12:00:00Z"
         ],
 
     "getlaminas.org" => [
             "is_valid"    => true,
             "created_at" => "2019-08-14T00:00:00Z",
             "valid_until" => "2020-08-13T12:00:00Z"
         ],
 
     "www.zend.com" => [
             "is_valid"    => true,
             "created_at" => "2019-06-12T00:00:00Z",
             "valid_until" => "2020-06-16T12:00:00Z"
         ]
];

[
    "symfony.com" => [
             "is_valid"    => true,
             "created_at" => "2019-04-04T00:00:00Z",
             "valid_until" => "2020-04-04T12:00:00Z"
           ],
   
    "laravel.com" => [
            "is_valid"    => true,
            "created_at" => "2019-11-19T00:00:00Z",
            "valid_until" => "2020-10-09T12:00:00Z"
       ],
   
    "getlaminas.org" => [
           "is_valid"    => true,
           "created_at" => "2019-08-14T00:00:00Z",
           "valid_until" => "2020-08-13T12:00:00Z"
       ],
    
    "www.zend.com" => [
           "is_valid"    => true,
           "created_at" => "2019-06-12T00:00:00Z",
           "valid_until" => "2020-06-16T12:00:00Z"
       ]
];

[
    "symfony.com" => [
            "is_valid"    => true,
            "created_at" => "04-04-2019 00:00:00",
            "valid_until" => "04-04-2020 12:00:00"
        ],

    "getlaminas.org" => [
            "is_valid"    => true,
            "created_at" => "14-08-2019 00:00:00",
            "valid_until" => "13-08-2020 12:00:00"
        ]
];
 php


use JrBarros\CheckSSL;

fony = 'https://symfony.com';
$laravel = 'https://laravel.com';

$laminas = 'https://getlaminas.org';
$zend    = 'https://www.zend.com/';

$array = [$laminas, $zend];

$example0 = $checkSLL->add($symfony)->check();

$example1 = $checkSLL->add($symfony, $laravel)->check();

$example2 = $checkSLL->add($array)->check();

$example3 = $checkSLL->add($symfony, $laravel, $array)->check();

print_r($example0);
print_r($example1);
print_r($example2);
print_r($example3);
 php


use JrBarros\CheckSSL;

'https://getlaminas.org'];

$dateFormat = 'U';
$formatString = 'd-m-Y H:i:s';
$timeZone = 'America/Sao_Paulo';
$timeOut = 30

$checkSLL = new CheckSSL($data, $dateFormat, $formatString, $timeZone, $timeOut);

print_r($checkSLL->check());