Documentation / 01
Quick start
From installation to your first reproducible audit.
Requirements
PHP 8.2 or later, DOM and cURL extensions. Composer is optional for the standalone checkout.
php -v
php -mInstall
Composer
Use the published package in a development project. If indexing is not complete, use the Git checkout below.
composer require --dev hamzaaqq/openqa-toolkit:^0.1
vendor/bin/openqa --versionWindows Command Prompt:
vendor\bin\openqa.bat --versionGit checkout
git clone https://github.com/Hamzaaqq/openqa-toolkit.git
cd openqa-toolkit
php bin/openqa --versionFirst audit: offline exercise
php bin/openqa html examples/sample.html --jsonExpect three intentional findings: a missing image alt attribute, duplicate ID and missing local anchor. Copy the fixture to a scratch file, fix each finding, and audit it again. Expect zero findings. Use meaningful alt text or empty alt for decorative images.
Authorized HTTP checks
Only use this mode with permission. Replace the example URL with your authorized target.
php bin/openqa url https://example.com --authorized --jsonOne GET request, no redirects, 15-second timeout, 2 MiB response limit. HTML checks run on successful HTML responses. Missing CSP, Referrer-Policy, X-Content-Type-Options and HTTPS HSTS are advisory findings. Timing is not browser performance.
Never expose the URL checker as a public service; it can reach local or private networks.
Interpret exit codes
| Code | Meaning |
|---|---|
| 0 | No findings |
| 1 | Findings require review |
| 2 | Usage or operational error |
In PowerShell check $LASTEXITCODE. Findings do not establish accessibility compliance or security vulnerabilities.