Download for Google Chrome (opens in a new tab)
Download for Edge (opens in a new tab)
Download for Firefox (opens in a new tab)Newsletter
New laws and deadlines, court rulings, enforcement and WCAG changes. A short summary once a week, and an e-mail straight away when something important happens. Unsubscribe at any time.

A Composer package that adds the accessibility widget to the views of a Laravel application with one Blade directive. The site token lives in the .env file.
Packagist (Composer)
The dockcodes/assistforwcag-laravel package works with Laravel 9 to 13 on PHP 8.2 or newer. The @assistForWCAG directive puts the widget's script where you place it, best in the main layout before </body>.
Visitors open the widget with its button and adjust the page to their needs:
You keep the site token in the ASSIST_FOR_WCAG_TOKEN variable of the .env file. The widget's look, the accessibility options and the accessibility statement are set in your DockAccess account, so changing them does not touch the application.
The widget collects no personal data of visitors. Only the IP address and the user agent are recorded to count views.
Copy the site token from My sites in your DockAccess account and paste it below. No site yet? Add one.
The code in the next steps fills in with this token.
Install the package with Composer:
composer require dockcodes/assistforwcag-laravel
Add the site token to the .env file. It contains the token you pasted above.
ASSIST_FOR_WCAG_TOKEN="SITE_TOKEN"
Add the @assistForWCAG directive to the main layout, before </body>:
@assistForWCAG
Open your website and check that the accessibility widget button is visible.
The widget appears on every page rendered with the layout that has the directive. Visitors open it with its button or with Ctrl + U, and the widget remembers their choices on the next visit.
In your DockAccess account, pick the site in My sites and open its Accessibility widget tab. There you set the colours, the position and size of the button (also separately for narrow screens), the maximum zoom, the features and profiles on offer, your own selectors and the accessibility statement. The preview shows a change before you save it, and the package does not have to be installed again.
The widget works on the domains of the site in your account, so add every address the website runs under. The free plan covers 5,000 widget views a month for all the sites of the account. Once they are used up, the widget does not show until the 1st of the next month or until a plan with a higher limit is active.
Module for Magento 2.4.4+, Adobe Commerce and Mage-OS
Let your visitors adapt the website to their needs: contrast, text size, reading aloud and ready-made profiles.
See the installationFree up to 5,000 views a month.