PHP code example of dockcodes / a11y-checker-laravel
1. Go to this page and download the library: Download dockcodes/a11y-checker-laravel 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-laravel example snippets
// Run scan
$result = \A11yChecker::scan('https://example.com');
echo "Audit uuid: " . $result['response']['uuid'] . "\n";
echo "Address uuid: " . $result['response']['address_uuid'] . "\n";
// Get audit result
$report = \A11yChecker::audit($result['uuid']);
print_r($report['response']);
// Get history
use Dock\A11yChecker\Dtos\HistoryFilters;
$history = \A11yChecker::history($result['address_uuid'], filters: HistoryFilters::from(date_from: '01-01-2000'));
print_r($history['response']);