aimeos/sanitizer
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| webpatser/laravel-sanitize | 0.89 | — | 7 | 8 | 2 | 127 | 0 | 0.0 | 12.0 | — | — | |
| voku/anti-xss | 0.86 | PHP AntiXSS library to sanitize untrusted HTML and prevent XSS attacks. Cleans input by removing dangerous tags/attributes, filters CSS/JS vectors, and supports UTF-8 and common encodings. Useful for safely handling user-generated content in apps. | 709 | 727 | 117 | 290K | 1 | 7.3 | 36.0 | MIT | — | |
| fossar/htmlawed | 0.84 | Fork of kesar/HTMLawed maintained by selfoss and wallabag. A single-file (~45KB) PHP HTML filter/sanitizer that secures and tidies user input, making it standards-compliant for HTML/XHTML/XML, with extensive customization options. | 2 | 2 | 2 | 8K | 0 | 2.5 | 46.6 | GPL-2.0 | 2 years ago | |
| symfony/html-sanitizer | 0.84 | Symfony HtmlSanitizer provides an object-oriented API to sanitize untrusted HTML before inserting it into the DOM. Configure allowed/blocked tags and attributes, drop or keep children, force attribute values, enforce HTTPS, and restrict link schemes/hosts to prevent XSS and unsafe behavior. | 280 | 282 | 13 | 3M | 0 | 35.3 | 65.0 | MIT | 1 week ago | |
| rhukster/dom-sanitizer | 0.81 | MIT-licensed PHP 7.3+ DOM/SVG/MathML sanitizer using DOMDocument and DOMPurify-based allowlists. Remove dangerous tags/attributes, strip namespaces and PHP/HTML/XML tags, and optionally compress output. Supports HTML, SVG, and MathML modes. | 11 | 11 | 4 | 143K | 0 | 21.9 | 64.1 | MIT | 1 month ago | |
| typo3/html-sanitizer | 0.74 | Standalone PHP HTML sanitizer from TYPO3. Define sanitizing rules via Behavior, apply multiple Visitors, and run through a Sanitizer built from reusable presets. Supports safe tag/attribute allowlists, value validation (e.g., regex), and encoding or removing invalid nodes. | 28 | 28 | 15 | 305K | 6 | 30.4 | 66.1 | MIT | 1 month ago | |
| enshrined/svg-sanitize | 0.67 | PHP SVG/XML sanitizer inspired by DOMPurify. Clean untrusted SVGs with a simple sanitize() call, optional custom tag/attribute whitelists, remote reference stripping to prevent leaks, issue reporting, and output minification. Returns clean XML or false on parse errors. | 543 | 545 | 66 | 1M | 18 | 14.5 | 55.2 | GPL-2.0 | 9 months ago |
How can I help you explore Laravel packages today?