voku/anti-xss
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| laminas/laminas-escaper | 0.85 | Securely escape untrusted data for HTML, HTML attributes, JavaScript, CSS, and URLs to prevent XSS. Laminas Escaper provides robust, context-aware escaping utilities for PHP apps and templates. | 223 | 222 | 23 | 2M | 6 | 10.4 | 57.4 | BSD-3-Clause | 11 months ago | |
| voku/portable-ascii | 0.83 | PHP 7+ library to transliterate Unicode to portable ASCII for slugs, URLs, and safe filenames. Works without mbstring/iconv, lightweight and easy to bundle. Based on Unidecode/Stringy-style mappings with handy helper methods. | 577 | 580 | 52 | 13M | 16 | 9.9 | 62.4 | MIT | — | |
| ezyang/htmlpurifier | 0.81 | HTML Purifier is a robust HTML filtering library that prevents XSS using strict whitelists and aggressive parsing, producing standards-compliant output. Ideal for richly formatted, untrusted HTML with configurable tag and CSS support. | 3,350 | 3,456 | 359 | 9M | 107 | 51.6 | 70.2 | LGPL-2.1 | 11 months ago | |
| aimeos/sanitizer | 0.78 | 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. | 204 | 184 | 0 | 3K | 0 | 1.0 | 16.3 | LGPL-2.1 | — | |
| rhukster/dom-sanitizer | 0.78 | 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. | 12 | 11 | 4 | 169K | 0 | 24.0 | 64.7 | MIT | 1 month ago | |
| fossar/htmlawed | 0.78 | 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 | 6K | 0 | 22.1 | 53.9 | GPL-2.0 | 2 months ago | |
| voku/portable-utf8 | 0.77 | High-performance UTF-8 helper library for PHP with portable polyfills for mbstring and intl features. Provides fast string operations, validation, normalization, encoding fixes, and safe text handling across environments without extra extensions. | 518 | 524 | 88 | 412K | 2 | 5.8 | 40.7 | Apache-2.0 | — | |
| masterminds/html5 | 0.75 | Standards-compliant HTML5 parser and serializer for PHP. Provides SAX-like event parsing, DOM tree building, namespace support, Composer install, and interoperability with QueryPath. Stable and widely used in production. | 1,782 | 1,806 | 120 | 10M | 29 | 50.9 | 73.8 | NOASSERTION | 1 month ago | |
| coduo/php-humanizer | 0.75 | Humanize and format values for people: turn field names into readable labels, truncate plain text or HTML safely to word boundaries, and handle common string transformations. Lightweight PHP utility with simple static APIs. | 1,667 | 1,676 | 110 | 21K | 0 | 24.6 | 16.6 | MIT | 9 months ago |
How can I help you explore Laravel packages today?