Download the PHP package alkhwlani/xss-middleware without Composer
On this page you can find all versions of the php package alkhwlani/xss-middleware. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alkhwlani/xss-middleware
More information about alkhwlani/xss-middleware
Files in alkhwlani/xss-middleware
Package xss-middleware
Short Description A Laravel Middleware to filter user inputs from XSS and iframes and other embed elements.
License MIT
Informations about the package xss-middleware
A XSS middleware for Laravel
A Laravel middleware to cleaning all inputs/data of request from XSS and embed elements, its used voku/anti-xss under the hood.
Support version
| Laravel | laravel-modules |
|---|---|
| 5.8 | ^1.0 |
| 6.X-8.X | ^2.0 |
| 9.X | ^3.0 |
| 10.X-13.X | ^4.0 |
Install
composer require alkhwlani/xss-middleware
Usage
That's it! by default package automatic register a global middleware to cleaning all string inputs for all requests.
if you are not using automatic package discovery, then add the service provider in config/app.php:
Optional
if you want customizes configuration you can publish the configuration
Then check the content of the published config file config/xss-middleware.php.
Testing
Run the tests with:
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
Credits
- Salah Alkhwlani
- Graham Campbell
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of xss-middleware with dependencies
illuminate/support Version ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/http Version ^10.0 || ^11.0 || ^12.0 || ^13.0
voku/anti-xss Version ^4.1