定制 thirtybittech/a11yamic 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

thirtybittech/a11yamic

Composer 安装命令:

composer require thirtybittech/a11yamic

包简介

Accessibility for Statamic — editor-time WCAG checks, alt-text governance, in-browser auditing, and a compliance-statement generator.

README 文档

README

Catch accessibility problems while you write; prove your compliance when you ship.

WCAG-aware tooling inside the Statamic Control Panel — editor-time author checks, alt-text governance, in-browser auditing, and a compliance-statement generator. Nothing leaves your server.

⚖️ The EU European Accessibility Act is in force (since 28 Jun 2025) and US ADA Title II deadlines land in 2026–27. A11yamic gives agencies and SMBs the tooling — and the paper trail — without an enterprise-priced compliance suite.

Statamic 6 · PHP 8.2+

Features

  • Author Assist — live, plain-language checks in Bard & Markdown (missing/poor alt text, skipped/empty headings, vague link text, header-less tables) with a how-to-fix for each. Per-rule Off / Warn / Block save; blocking is enforced server-side (on EntrySaving) and surfaces as a native field error.
  • Alt-text manager — every image, an alt-text coverage %, a "needs attention" filter, inline editing, and a decorative flag.
  • Page Audit — runs axe-core in your browser (no server Node/headless needed, works on shared hosting). Tracks your site score over time and tags each finding Template vs Content with a Statamic-specific fix (e.g. add <main>, <h1>).
  • Statement generator — a WCAG 2.1 AA / EAA / EN 301 549-aligned statement, saved to a collection.
  • Front-end helpers{{ a11yamic:skip_link }}, {{ a11yamic:current }}.
  • Dashboard score widget, role-based permissions, full i18n.

Honest by design. Automated tools catch ~30–40% of WCAG criteria. A11yamic prevents issues at authoring time and gives you an audit baseline — it's not a substitute for manual review, and it's not an overlay. It fixes issues at the source.

Install

composer require thirtybittech/a11yamic
php artisan vendor:publish --provider="ThirtyBitTech\A11yamic\ServiceProvider"
php artisan cache:clear

The Accessibility section then appears in the CP. Most asset containers already have an alt field; the Page Audit needs published, routable entries.

Optional front-end helper styles (skip-link / visually-hidden):

<link rel="stylesheet" href="/vendor/a11yamic/a11yamic.css">

Re-run vendor:publish … --force after upgrading the addon to refresh the published CP assets.

Configure

Everything lives in config/a11yamic.php; per-rule levels are also editable at Accessibility → Settings (stored overrides merge over the file).

Key Purpose
default_level / rules Per-rule enforcement: off / warn / block
options.* Tuning: alt length, generic-link words, first-heading level
scanned_fieldtypes Field types Author Assist inspects
alt_text.field Per-container map of which field holds alt text
audit.path / audit.axe_tags Flat-file results location · axe rule tags

License

Commercial — licensed per site via the Statamic Marketplace. See LICENSE.md. axe-core is bundled under MPL-2.0.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2026-07-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固