PHP code example of visualappeal / php-ssllabs-api

1. Go to this page and download the library: Download visualappeal/php-ssllabs-api 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/ */

    

visualappeal / php-ssllabs-api example snippets




urn API response as JSON string
$api = new SslLabs();

//Return API response as JSON object
//$api = new SslLabs(true);

//get API information
var_dump($api->fetchApiInfo());


$api->sendApiRequest('apiCallName', array('p1' => 'p1_value', 'p2' => 'p2_value'));

$api->info();

$api->analyze('https://www.google.de');

$api->getEndpointData('https://www.google.de', '74.125.239.111');