Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 1.87 KB

README.md

File metadata and controls

52 lines (37 loc) · 1.87 KB

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