dockcodes/assistforwcag-laravel
最新稳定版本:1.0.1
Composer 安装命令:
composer require dockcodes/assistforwcag-laravel
包简介
Package to inject accessibility widget
README 文档
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.
Add to .env file:
ASSIST_FOR_WCAG_TOKEN="[Enter token here]"
How to display accessibility widget
<body>
@assistForWCAG
</body>
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-09-14