dockcodes / a11y-checker-laravel
Package info
github.com/dockcodes/a11y-checker-laravel
Type:package
pkg:composer/dockcodes/a11y-checker-laravel
1.0.3
2025-11-14 17:49 UTC
Requires
- php: >=8.0
- dockcodes/a11y-checker: ^1.0
Requires (Dev)
- orchestra/testbench: ^7.0|^8.0|^9.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Laravel package for communicating with the accessibility audit API.
Supported functions:
- Running a page audit (scan) – synchronously and asynchronously
- Retrieving the audit result by audit UUID (get)
- Retrieving audit history by address UUID (history)
Setup
composer require dockcodes/a11y-checker-laravel
Publish config:
php artisan vendor:publish --provider="Dock\A11yCheckerLaravel\DockServiceProvider" --tag="config"
Usage
Add to .env file:
A11Y_API_KEY=[CONTACT US FOR API KEY]
Code example:
<?php // 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']);
Method parameters
scan(string $url, Language $lang = Language::EN, Device $device = Device::DESKTOP, bool $sync = false, bool $extraData = false, ?string $uniqueKey = null) rescan(string $uuid, Language $lang = Language::EN, bool $sync = false, bool $extraData = false) audits(string $search, int $page = 1, int $perPage = 10, Sort $sort = Sort::LAST_AUDIT_DESC, ?string $uniqueKey = null) audit(string $uuid, Language $lang = Language::EN, bool $extraData = false) user() deleteAudit(string $uuid) history(string $uuid, int $page = 1, int $perPage = 10, Sort $sort = Sort::CREATED_AT_ASC, ?HistoryFilters $filters = null) deleteHistory(string $uuid) updateAuditManual(string $uuid, string $criterionId, AuditStatus $status, Device $device)
To obtain an API key, please contact us via the contact form.