PHP code example of takuya / php-cert-checker

1. Go to this page and download the library: Download takuya/php-cert-checker 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/ */

    

takuya / php-cert-checker example snippets



use Takuya\PhpCertChecker\CertificateChecker;
//
$checker = new CertificateChecker("twitter.com");
if ($checker->isCertExpired()){
  echo "The Cert is Expired at ". $checker->getExpiredAt();
}
sh
composer config repositories.'php-cert-checker' \
         vcs https://github.com/takuya/php-cert-checker  
composer 
shell
git clone https://github.com/takuya/php-cert-checker
cd php-cert-checker
composer install 
vendor/bin/phpunit