New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

webcrafts-studio/lens-for-laravel

A local-first WCAG accessibility auditor for Laravel with axe-core, source mapping, CI workflows, and optional AI fixes.
9,561 57
Install
composer require webcrafts-studio/lens-for-laravel
Latest Version:v3.6.0
PHP:^8.2
Laravel:10 – 13
License:MIT
Last Updated:Oct 28, 2026
Links: GitHub  ·  Packagist
Maintainer: jakub-lipinski

Lens for Laravel

Latest stable version Total downloads GitHub stars MIT license

Accessibility, closer to your code.
Documentation · Website · Report an issue

About Lens

Lens for Laravel finds accessibility issues in your rendered application, maps them to source files, and helps you review fixes in the dashboard. Powered by axe-core and Chromium.

  • Scan your app: individual pages, whole websites, interactive states, and pages behind login.
  • Find the source: Blade, Livewire, React, Vue, and Inertia projects.
  • Review AI fixes: editable suggestions, diff previews, cloud providers, and local Ollama models.
  • Track progress: scan history, comparisons, element previews, PDF reports, and CI baselines.
A real WCAG 2.2 audit of an example Laravel checkout: three findings and their Blade source locations.
See an element preview Lens highlights an unlabelled email field on the scanned checkout page.

Quick start

Requires PHP 8.2+, Laravel 10-13, Node.js, and Chromium. Use Lens in local or controlled development environments.

composer require webcrafts-studio/lens-for-laravel --dev
npm install puppeteer --save-dev
php artisan lens:install

Open /lens-for-laravel/dashboard in your application, or run:

php artisan lens:audit --aa --wcag=2.2

WCAG 2.0 is the default; --wcag=2.2 includes the earlier rule sets. See the installation guide for optional history and configuration.

AI Fix is optional: PHP 8.3+, Laravel 12+, and laravel/ai are required. Set up AI Fix

AI requests send bounded source context to the configured provider. Default localhost Ollama processing stays on the application host; cloud providers and remote Ollama endpoints receive that context over the network. Applied fixes remain pending and counted until a fresh scan verifies them.

Use Lens with your coding assistant

Connect Codex or Claude Code to the same Lens scanner through the optional official laravel/mcp package. Ask your assistant to scan a page, inspect findings, edit the source, and verify the changes with a fresh audit.

composer require laravel/mcp --dev
php artisan lens:mcp:install --client=codex

Use --client=claude for Claude Code, then reconnect your assistant. It starts the local MCP server automatically. Lens MCP requires PHP 8.2+ and Laravel 10.49+; it uses your assistant's model and does not require laravel/ai.

Setup, tools, and long scans.

Documentation

Scanning modes · Configuration · CLI & CI · AI Fix · Lens MCP

Upgrade guides: v3 · v2.1 · v2.

Automated checks do not prove full WCAG conformance. Always complement scans with manual keyboard and screen reader testing. Source mapping is heuristic.

Lens for Laravel is open source under the MIT license.

Related Packages

waynestate/wayne-ui

Wayne State University design system for PHP. Framework-free helpers plus option...

38 1
itsjustvita/laravel-bfsg

BFSG and WCAG 2.1 accessibility checks for Laravel: a CI-ready check command, mi...

1,006 3
aotr/open-a11y-laravel

The open-a11y accessibility widget for Laravel Blade, Livewire, and Inertia Reac...

24 0
parvion/accessibility

An enterprise-grade, zero-dependency, highly configurable accessibility toolbar...

28 2
zoltantorok/filament-drag-and-scroll

Shift + Drag to scroll Filament tables horizontally. Designed for users with bas...

4,422 3

Version History

Version Released PHP Laravel License
v3.6.0 ^8.2 ^10.0|^11.0|^12.0|^13.0 MIT
v3.5.0 ^8.2 ^10.0|^11.0|^12.0|^13.0 MIT
v3.4.0 ^8.2 ^10.0|^11.0|^12.0|^13.0 MIT
v3.3.0 ^8.2 ^10.0|^11.0|^12.0|^13.0 MIT
v3.2.0 ^8.2 ^10.0|^11.0|^12.0|^13.0 MIT