1. Go to this page and download the library: Download dockcodes/a11y-checker 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/ */
dockcodes / a11y-checker example snippets
Dock\A11yChecker\Client as A11yCheckerClient;
$guest = new A11yCheckerClient();
// Run scan
$result = $guest->scan('https://example.com');
echo "Audit uuid: " . $result['uuid'] . "\n";
echo "Address uuid: " . $result['address_uuid'] . "\n";
// Get audit result
$report = $guest->audit($result['uuid']);
print_r($report);
// Get history
$history = $guest->history($result['address_uuid']);
print_r($history);