bpmore / statamic-a11y-docs
Document accessibility checking for the Statamic asset library: PDF, Word, PowerPoint and Excel.
Package info
github.com/bpmore/statamic-a11y-docs
Type:statamic-addon
pkg:composer/bpmore/statamic-a11y-docs
Requires
- php: ^8.2
- ext-dom: *
- ext-zip: *
- smalot/pdfparser: ^2.12
- statamic/cms: ^6.0
- symfony/process: ^7.0 || ^8.0
Requires (Dev)
- laravel/pint: ^1.18
- orchestra/testbench: ^10.8 || ^11.0
- pestphp/pest: ^3.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Document accessibility checking for the Statamic asset library. PDF, Word, PowerPoint and Excel.
Every university, hospital and agency has thousands of PDFs nobody has ever looked at. It is the first thing an external auditor counts, because it is the easiest thing to count. This tells you what is in there.
php please docs:check
1,240 PDFs · 214 DOCX · 890 untagged · 210 image-only scans
It inventories and triages. It does not remediate. Knowing that you have 890 untagged PDFs and exactly which ones is the hard part; fixing them is a different job.
What it does
- Checks 36 rules across PDF, Word, PowerPoint and Excel — see what it checks.
- Re-checks only what changed. A library of 1,240 documents is not reprocessed nightly.
- Stops new bad documents being published, without blocking the ones that were already there. See the publish gate.
- Reports, on screen, on the command line, and as an accessible HTML or tagged PDF export — which passes PDF/UA validation itself.
Installing
composer require bpmore/statamic-a11y-docs
php please migrate
php please docs:check
That is the whole installation. There is no Java to install, no binary to configure, and nothing to sign up for.
To show a status badge in the asset browser, add one field to the container's asset blueprint — how.
Do I need veraPDF?
Almost certainly not. The long answer, the short one:
The built-in checks are pure PHP, run everywhere, and find the problems that are actually in your library — untagged files, scans with no text layer, missing titles and languages, undescribed figures. veraPDF is a Java program that performs formal PDF/UA validation. It is more authoritative and it is more work to install.
Install it if you have to certify PDF/UA conformance to somebody who will check. Otherwise skip it. Every report says which engine produced it, so nothing overstates itself either way.
The rest of the line
- A11y Gate — free, blocks entries with accessibility problems.
- A11y Report — proves the site, with a conformance report.
- A11y Docs — this one, covers the asset library.
When A11y Report is installed too, document findings appear in its conformance report as their own appendix — never folded into the WCAG table, because document conformance is PDF/UA and Section 508 Chapter 5 territory and conflating the two is a category error an auditor will catch.
Documentation
| Installing and configuring | Including the asset-browser badge |
| What it checks | All 36 rules, generated from the code |
| Commands | docs:check, docs:report, docs:prune |
| The publish gate | Grandfathering, thresholds, exemptions |
| Reports and exports | HTML and tagged PDF |
| Do I need veraPDF? | Short answer: no |
Requirements
PHP 8.2+, Statamic 6, and a database. veraPDF and a browser (for PDF exports) are both optional and both degrade to a clear message rather than a failure.
Licence
Proprietary. One licence per production site; local development and CI are free. The source is published so it can be installed with Composer and inspected by the people who rely on it. See LICENCE — in particular what it says about the difference between a heuristic finding and PDF/UA validation.