poldixd / laravel-sa11y
0.1.0
2025-09-02 09:58 UTC
Requires
- php: ^8.2
- illuminate/support: ^11.0|^12.0
Requires (Dev)
- laravel/pint: ^1.19
- orchestra/testbench: ^9.0|^10.0
- pestphp/pest: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
README
This package integrates Sa11y into your Laravel 11+ application.
Installation
To get started, install the package using Composer and publish the configuration file if needed.
You can install the package via composer:
composer require poldixd/laravel-sa11y
You can publish the config-file with:
php artisan vendor:publish --tag=sa11y
Usage
Include the following Blade component inside the <head>
section of your layout:
<x-sa11y />
When SA11Y_ENABLED=true
is set in your environment, the Sa11y CDN script will be automatically injected into your application.
Configuration
You can control Sa11y integration through the published config file (config/sa11y.php
) or by setting environment variables.
Example in .env
:
SA11Y_ENABLED=true