andyftw / ssllabs-php
SSL Labs API PHP-Port
Installs: 10 693
Dependents: 1
Suggesters: 0
Security: 0
Stars: 8
Watchers: 2
Forks: 1
Open Issues: 1
Requires
- php: >=5.3.3
- jms/serializer: ^0.16.0
Requires (Dev)
- phpunit/phpunit: ~4.0
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.
<?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()
analyze()
Invoke assessment and check progress
getEndpointData()
Retrieve detailed endpoint information