Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Sanitizer Laravel Package

elegantweb/sanitizer

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.

View on GitHub
Deep Wiki
Context7
Package
Score
Description
Stars
Likes
Forks
Downloads
Issues
Score
Opportunity
License
Last Release
typo3/html-sanitizer 0.89 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
View on GitHub
webpatser/laravel-sanitize 0.88 — 7 8 1 165 0 0.0 13.0 — —
View on GitHub
vanilla/htmlawed 0.87 Laravel integration for HTMLawed, a PHP HTML sanitizer and validator. It cleans user-submitted markup, balances tags, filters unsafe attributes and elements, and helps preserve safe formatting in rich text. Useful for sanitizing comments, CMS content, and other untrusted HTML. 40 42 15 8K 3 1.8 32.5 NOASSERTION 3 years ago
View on GitHub
protonemedia/laravel-xss-protection 0.87 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. 150 150 9 45K 3 10.5 38.2 MIT 7 months ago
View on GitHub
dms/dms-filter 0.87 Filter and sanitize object properties via PHP attributes. Annotate fields with rules like Trim, StripTags, and StripNewlines, then run a Filter service to clean entity values automatically—ideal alongside Symfony Validator and for consistent input normalization. 95 96 18 4K 2 3.9 23.7 MIT 2 years ago
View on GitHub
aimeos/sanitizer 0.86 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 —
View on GitHub
stevebauman/purify 0.86 A Laravel wrapper for HTMLPurifier that sanitizes user input. Clean strings or arrays via Purify::clean(), define allowed HTML in the publishable config, and cache parsed definitions for performance. Supports PHP 7.4+ and Laravel 7+. 537 540 38 523K 0 20.5 44.0 MIT 7 months ago
View on GitHub
Context7
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
View on GitHub
Context7
htmlawed/htmlawed 0.86 htmlawed/htmlawed is a PHP HTML sanitizer and validator that filters untrusted markup, balances tags, and restricts elements and attributes to help prevent XSS. It can clean user-submitted content, enforce custom HTML policies, and produce safer, well-formed output for web applications. 42 49 16 54K 9 3.2 45.0 GPL-2.0 —
View on GitHub
arondeparon/laravel-request-sanitizer 0.86 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
View on GitHub
ivanbaric/sanigen 0.86 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
View on GitHub
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
View on GitHub
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
View on GitHub
abbasudo/laravel-purity 0.85 Laravel Purity is an elegant filtering and sorting package for Laravel Eloquent. Add filter() to any query and let frontend users filter and sort results through simple URL query string parameters, with no extra boilerplate. 515 515 57 35K 19 25.2 35.2 MIT 7 months ago
View on GitHub
Context7
xemlock/htmlpurifier-html5 0.85 HTML5 definitions and tidy/sanitization rules for HTML Purifier, aligned with the WHATWG spec. Purify and normalize dirty HTML5 into valid output with an HTML5-ready config, plus flexible directives (e.g., safely allow YouTube iframes). 106 106 15 92K 1 11.5 42.8 MIT 8 months ago
View on GitHub
waavi/sanitizer 0.85 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 — —
View on GitHub
voku/anti-xss 0.85 AntiXSS is a lightweight PHP library for filtering malicious input and preventing cross-site scripting attacks. It cleans user-supplied strings and arrays, with support for custom sanitizing, making it a simple drop-in defense for web forms and input handling. 711 729 121 439K 1 26.5 44.9 MIT 4 weeks ago
View on GitHub
tgalopin/html-sanitizer-bundle 0.85 Symfony bundle integrating the html-sanitizer library so you can define and configure HTML sanitizers as services, clean untrusted markup safely, and use customizable sanitizer profiles throughout your application. 85 — 10 — 2 1.5 0.4 MIT 4 years ago
View on GitHub
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
View on GitHub
laravel-at/laravel-image-sanitize 0.84 Laravel middleware that re-encodes uploaded images to strip hidden malicious payloads, reducing the risk of code execution. Requires PHP 8.3+, Laravel 12/13, and Intervention Image 4. 345 346 24 5K 0 23.3 19.3 MIT 2 months ago
View on GitHub
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle