sneek / laravel-xss-middleware
Simple Laravel XSS middlware to strip all tags and encode all entities from a user
Installs: 3 564
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- php: >=5.4
- illuminate/http: ^5.0
Requires (Dev)
- phpunit/phpunit: ^5.0
This package is not auto-updated.
Last update: 2024-12-07 03:26:14 UTC
README
A simple middleware for use in Laravel projects.
Installation
Clone the repository
composer require sneek/laravel-xss-middleware
Add to the Http kernel App\Http\Kernel
/** * The application's route middleware groups. * * @var array */ protected $middlewareGroups = [ 'web' => [ ... \Sneek\Http\Middleware\XSSProtection::class, ], ....