andyftw/ssllabs-php

SSL Labs API PHP-Port

v1.2 2016-05-24 23:25 UTC

This package is not auto-updated.

Last update: 2024-11-21 01:29:56 UTC


README

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