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. | 219 | 219 | 23 | 2M | 6 | 27.5 | 65.7 | BSD-3-Clause | 5 months ago | |
| ezyang/htmlpurifier | 0.84 | 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,370 | 3,491 | 354 | 7M | 106 | 68.8 | 86.5 | LGPL-2.1 | 5 months ago | |
| voku/portable-ascii | 0.81 | 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. | 574 | 578 | 45 | 10M | 19 | 11.0 | 64.8 | MIT | — | |
| aimeos/sanitizer | 0.80 | 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. | 112 | 106 | 0 | 1K | 0 | 0.6 | 15.6 | LGPL-2.1 | — | |
| typo3/html-sanitizer | 0.75 | Standards-based HTML sanitizer for PHP with safe, configurable cleaning of untrusted markup. Remove dangerous tags/attributes, normalize output, and allow whitelisting policies for links, images, and formatting—ideal for user content, CMS, and APIs. | 27 | 27 | 15 | 247K | 6 | 31.4 | 66.8 | MIT | 1 year ago | |
| 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,772 | 1,790 | 120 | 8M | 29 | 50.7 | 74.0 | NOASSERTION | 8 months ago | |
| voku/portable-utf8 | 0.75 | 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. | 519 | 523 | 92 | 314K | 9 | 9.3 | 45.9 | Apache-2.0 | — | |
| spatie/phpunit-snapshot-assertions | 0.73 | Add snapshot testing to PHPUnit with simple assertions for JSON, XML, and text. First run creates snapshots; later runs compare outputs and fail on regressions. Ideal for verifying serialized data and responses with minimal test boilerplate. | 695 | 699 | 77 | 608K | 1 | 34.9 | 47.8 | MIT | 2 months ago | |
| phpstan/phpstan | 0.73 | PHPStan is a PHP static analysis tool that finds bugs without running your code. It checks types and logic, flags common error patterns early, and helps enforce higher code quality—bringing PHP closer to compiled-language safety before tests or runtime. | 13,894 | 13,945 | 947 | 8M | 1,103 | 90.8 | 72.0 | MIT | 1 week ago | |
| rmccue/requests | 0.72 | A simple, lightweight HTTP library for PHP. Requests provides an easy API for making GET/POST calls, handling headers, cookies, redirects, proxies, timeouts, and authentication, with support for transports like cURL and sockets. | 3,579 | 3,653 | 502 | 707K | 94 | 80.1 | 69.0 | NOASSERTION | 3 months ago | |
| kubawerlos/php-cs-fixer-custom-fixers | 0.72 | Adds a curated set of custom fixers for PHP-CS-Fixer to enforce consistent, opinionated code style beyond the built-in rules. Plug in the fixers, combine with your config, and keep large PHP codebases clean and uniform. | 238 | 239 | 26 | 344K | 4 | 32.0 | 52.2 | MIT | 1 month ago | |
| spatie/shiki-php | 0.63 | PHP wrapper around Shiki for server-side syntax highlighting. Highlight code snippets to themed HTML using VS Code grammars, with support for many languages and themes. Great for docs, blogs, and static site generation in Laravel or any PHP app. | 307 | 309 | 32 | 2M | 0 | 29.7 | 60.3 | MIT | 2 months ago | |
| filp/whoops | 0.61 | Pretty error handler for PHP that turns fatal errors and exceptions into clean, developer-friendly pages with stack traces, request context, and code previews. Great for local development, debugging, and integrating into frameworks to replace default error screens. | 13,243 | 13,631 | 599 | 8M | 7 | 42.0 | 40.3 | MIT | — |
How can I help you explore Laravel packages today?