Skip to content

andyftw/ssllabs-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSL Labs API PHP-Port

This PHP library provides basic access to the SSL Labs API. It's build upon the official API documentation.

Build Status Latest Stable Version License

<?php

require_once 'vendor/autoload.php';

$api = new \Andyftw\SSLLabs\Api();

try {
  $info = $api->info();
  echo $info->getStatus();
} catch (\Andyftw\SSLLabs\Exception\ApiException $e) {
  echo $e->getMessage() . ' @ ' . $e->getCall();
}

Register annotation handler

Adding the following line should solve the problem

require_once 'vendor/autoload.php';
$loader = require_once 'vendor/autoload.php';
AnnotationRegistry::registerLoader(array($loader, "loadClass"));

Methods

info()

Check SSL Labs availability

analyze()

Invoke assessment and check progress

getEndpointData()

Retrieve detailed endpoint information

getStatusCodes()

Retrieve known status codes

getRootCertsRaw()

Retrieve root certificates

About

SSL Labs API PHP-Port

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages