{"repo":"protonemedia/laravel-xss-protection","free":true,"listed":false,"github":"https://github.com/protonemedia/laravel-xss-protection","clone":"git clone https://github.com/protonemedia/laravel-xss-protection.git","description":"Laravel XSS Protection Middleware","language":"PHP","stars":151,"topics":["laravel","laravel-package","xss","xss-detection","laravel-security"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Laravel XSS Protection Middleware Laravel Middleware to protect your app against Cross-site scripting (XSS). It sanitizes request input by utilising the voku/anti-xss package, and it can sanatize Blade echo statements as well. This package was inspired by the Security Core package. PHP 8.2 and higher Laravel 10 and higher PHP 8.4+ Compatibility This package includes a vendored version of voku/portable-utf8 in the vendor-lib directory. The upstream package hasn't released a PHP 8.4 compatible version yet (the fixes are merged but not tagged), so we bundle the fixed version to avoid deprecation warnings about implicitly nullable parameters. Sponsor Us ❤️ We proudly support the community by developing Laravel packages and giving them away for free. If this package saves you time or if you're relying on it professionally, please consider sponsoring the maintenance and development and check out our latest premium package: Inertia Table. Keeping track of issues and pull requests takes time, but we're happy to help! Installation You can install the package via composer: You may publish the config file with: Middleware Usage You may use the ProtoneMedia\\LaravelXssProtection\\Middleware\\XssCleanInput middleware in the route that handles the form submission. If your app has a lot of forms handled by many different controllers, you could opt to register it as global middleware. If you register the middleware globally, you may exclude requests by using the static skipWhen method. You can ","default_branch":null,"files":null,"tree":[],"storefront":"/r/protonemedia","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/protonemedia/laravel-xss-protection/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}