dockcodes/assistforwcag-laravel

Package to inject accessibility widget

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/dockcodes/assistforwcag-laravel

1.0.1 2025-09-14 11:32 UTC

This package is auto-updated.

Last update: 2025-12-14 12:01:34 UTC


README

This package allows you to quickly integrate the Assist for WCAG accessibility widget into your Laravel application. Using environment variables for configuration, you can generate the necessary JavaScript snippet and insert it anywhere on your site with a Blade directive (@assistForWCAG) or directly in PHP.

Features:

  • Easy setup with environment variables
  • Blade directive for simple insertion

Installation

1. Require package in your composer.json:

composer require dockcodes/assistforwcag

2. Publish config:

php artisan vendor:publish --provider="Dock\AssistForWCAG\DockServiceProvider" --tag="config"

3. Set up token

Register, generate a token and insert it in the configuration file.

Get free token here.

Add to .env file:

ASSIST_FOR_WCAG_TOKEN="[Enter token here]"

How to display accessibility widget

<body>
  @assistForWCAG
</body>