dockcodes/a11y-checker
最新稳定版本:1.0.10
Composer 安装命令:
composer require dockcodes/a11y-checker
包简介
PHP client for accessibility audit API
README 文档
README
PHP 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
Usage
<?php require 'vendor/autoload.php'; use Dock\A11yChecker\Client; $client = new Client('[API KEY]'); // Run scan $result = $client->scan('https://example.com'); echo "Audit uuid: " . $result['uuid'] . "\n"; echo "Address uuid: " . $result['address_uuid'] . "\n"; // Get audit result $report = $client->audit($result['uuid']); print_r($report); // Get history $history = $client->history($result['address_uuid']); print_r($history);
Method parameters
scan(string $url, Language $lang = Language::EN, Device $device = Device::DESKTOP, bool $sync = false, bool $extraData = false) audit(string $uuid, Language $lang = Language::EN, bool $extraData = false) history(string $uuid, int $page = 1, int $perPage = 10, Sort $sort = Sort::CREATED_AT_ASC)
To obtain an API key, please contact us via the contact form.
统计信息
- 总下载量: 158
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-09-30