protonemedia/laravel-xss-protection
Laravel XSS Protection provides middleware and validation rules that sanitize user input to guard against cross-site scripting. It recursively cleans request data, supports custom filters, and integrates smoothly with Laravel forms and Blade templates.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| arondeparon/laravel-request-sanitizer | 0.87 | Sanitize incoming request data before validation in Laravel. Define reusable sanitizers to trim, cast, or transform input—individually or in pipelines—keeping controllers and form requests clean. Integrates smoothly with Laravel's validation lifecycle. | 112 | 112 | 6 | 5K | 0 | 1.0 | 23.2 | MIT | 1 year ago | |
| elegantweb/sanitizer | 0.87 | Laravel package that cleans and normalizes user input before validation. Define sanitizer classes with rule sets to trim strings, cast types, strip tags, and transform request data, keeping controllers lean and application data consistent. Extensible with custom filters. | 115 | — | 15 | — | 0 | 10.1 | — | MIT | 7 months ago | |
| rhukster/dom-sanitizer | 0.86 | A fast, MIT-licensed DOM, SVG, and MathML sanitizer for PHP 7.3+. It uses PHP DOMDocument to strip dangerous tags and attributes, borrowing DOMPurify’s extensive allowlists. Configurable options and tag/attribute controls included. | 14 | 11 | 3 | 169K | 0 | 24.5 | 64.8 | MIT | 1 week ago | |
| webpatser/laravel-sanitize | 0.86 | — | 7 | 8 | 1 | 165 | 0 | 0.0 | 13.0 | — | — | |
| typo3/html-sanitizer | 0.86 | A standalone PHP HTML sanitization component from TYPO3, usable in any PHP project. Declarative Behavior settings define allowed tags, attributes, and values; visitors modify or remove nodes; builders combine presets into ready-to-use Sanitizer instances for safe HTML output. | 29 | 29 | 13 | 382K | 6 | 24.6 | 63.1 | MIT | 4 months ago | |
| symfony/html-sanitizer | 0.86 | Symfony's HtmlSanitizer component offers an object-oriented API to clean untrusted HTML for safe DOM insertion. Configure allowed elements, attributes, link schemes, and URL forcing to strip scripts and dangerous markup. | 284 | 283 | 13 | 4M | 0 | 36.3 | 64.9 | MIT | 1 week ago | |
| aimeos/sanitizer | 0.85 | Laravel package providing data sanitization helpers: clean and normalize input, strip unwanted characters/tags, and validate common formats. Useful for securing request data and preparing values for storage, APIs, and user-facing output. | 218 | 184 | 0 | 3K | 0 | 1.1 | 15.9 | LGPL-2.1 | — | |
| larahook/purifier | 0.85 | Laravel wrapper for HTMLPurifier that cleans and sanitizes untrusted HTML before it reaches your views. Filter user-generated content through a simple, configurable API to strip XSS and other malicious markup while preserving safe formatting. | 2 | 2 | 0 | 735 | 0 | 8.1 | 35.3 | MIT | 7 months ago | |
| masterro/laravel-xss-filter | 0.85 | A Laravel package for filtering XSS from user input. It offers configurable sanitization and middleware to clean request data, helping protect your application from cross-site scripting attacks with minimal setup. | 41 | 41 | 6 | 7K | 0 | 19.8 | 35.6 | MIT | 2 weeks ago | |
| graham-campbell/security | 0.85 | A Laravel package from Graham Campbell that helps harden your app by adding configurable security headers to HTTP responses. It provides a simple middleware-based setup for common browser protections, making it easy to improve response security with minimal configuration. | 0 | 255 | — | 8K | — | 0.3 | 54.2 | — | — | |
| smorken/sanitizer | 0.85 | Sanitizer for Laravel and PHP applications that cleans untrusted input and output, stripping unsafe HTML and helping prevent XSS. Configurable filters make it easy to define allowed tags and attributes for safe, consistent data handling. | 0 | 0 | — | 400 | — | 0.0 | 36.0 | — | — | |
| luketowers/purifier | 0.85 | A Laravel wrapper around HTMLPurifier that brings clean, secure HTML sanitization to your application. It offers a Purifier facade, Blade directive, service provider, and publishable config so you can safely filter user-supplied HTML and prevent XSS with minimal setup. | 32 | — | 8 | — | 2 | 0.8 | — | MIT | — | |
| tgalopin/html-sanitizer | 0.85 | tgalopin/html-sanitizer is a PHP library for cleaning untrusted HTML safely. It removes dangerous markup to prevent XSS while letting you configure allowed tags, attributes, and extensions, making it easy to display user-generated content securely. | 386 | — | 40 | — | 20 | 4.8 | 6.0 | MIT | 4 years ago |
|
| alkhwlani/xss-middleware | 0.85 | Laravel middleware that sanitizes incoming request data to help prevent XSS attacks. It filters user input and removes malicious HTML/scripts, adding a simple protection layer to your app without changing your existing validation flow. | 5 | 5 | 3 | 3K | 0 | 11.6 | 41.9 | MIT | 5 months ago | |
| backstage/laravel-minify-html-middleware | 0.85 | A Laravel middleware that minifies HTML responses on the fly, trimming whitespace and redundant markup to shrink payloads and speed up page delivery without touching your views or blade templates. | 6 | 6 | 0 | 1K | 2 | 0.4 | 31.2 | MIT | — | |
| jeffersongoncalves/laravel-html-sanitizer | 0.85 | A Laravel package for sanitizing untrusted HTML before rendering. It helps remove dangerous tags and attributes to reduce XSS risks, with configurable rules for safely handling user-generated content in your applications. | 1 | 1 | 0 | 511 | 0 | 19.9 | 39.0 | MIT | 1 week ago | |
| fahlisaputra/laravel-minify | 0.85 | A Laravel middleware package that minifies HTML, CSS, and JavaScript responses on the fly. Reduce page size and improve load times with simple configuration, optional caching, and support for custom minifier drivers—no build tools required. | 148 | 149 | 23 | 27K | 13 | 16.1 | 38.5 | MIT | 6 months ago | |
| ivanbaric/sanigen | 0.85 | Sanigen is a Laravel package for defining and generating reusable sanitizers that clean and normalize incoming request data before validation or persistence. It helps keep form and API input consistent, predictable, and safe with a simple, rule-based workflow. | 0 | — | 0 | — | 0 | 15.4 | — | MIT | 2 months ago | |
| waavi/sanitizer | 0.84 | Waavi Sanitizer provides a simple, flexible way to clean and transform user input in Laravel before validation. Define reusable sanitizers with built-in filters like trim, escape, cast, and custom filters to keep your data safe and consistent. | 0 | 433 | — | 718 | — | 0.0 | 39.5 | — | — | |
| fitztrev/laravel-html-minify | 0.84 | Laravel HTML Minify is middleware that automatically compresses HTML responses by removing extra whitespace, comments, and optional attributes, reducing page size and improving load times with simple installation and configuration. | 411 | 423 | 43 | 36 | 10 | 6.4 | 4.3 | MIT | — |
How can I help you explore Laravel packages today?