enshrined/svg-sanitize
PHP SVG sanitizer based on DOMPurify that cleans untrusted SVG/XML, strips dangerous tags and remote references, supports custom whitelists, minification, and reports sanitization issues.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| robwdwd/svg-icon-bundle | 0.87 | robwdwd/svg-icon-bundle is a Symfony bundle for organizing and rendering SVG icons in Twig templates. It offers icon set management, caching, and simple helpers for embedding scalable, styleable SVG icons without external image requests, making icon usage consistent and fast. | 0 | 5 | — | 0 | — | 0.0 | — | — | — | |
| vierwd/svg-inliner | 0.86 | A Laravel package for inlining SVG images directly into your HTML, letting you style and animate them with CSS and control their colors. Useful for icons and illustrations where external image references would block styling. Lightweight and easy to integrate. | 1 | 1 | 0 | 498 | 0 | 0.0 | 33.1 | MIT | 3 years ago | |
| contao/imagine-svg | 0.86 | Imagine-compatible SVG image library for PHP/Contao. Open, crop, resize, and apply common effects (gamma, grayscale, blur, etc.) to SVGs and save results. Includes SVG-aware sizing via SvgBox for absolute, aspect-ratio, or undefined dimensions. | 86 | 86 | 8 | 124K | 1 | 5.6 | 43.5 | — | 2 years ago | |
| rhukster/dom-sanitizer | 0.85 | 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 | |
| digifactory/laravel-svg-fixer-middleware | 0.85 | digifactory/laravel-svg-fixer-middleware is a lightweight Laravel middleware that corrects SVG HTTP responses, helping ensure SVG assets are served with the proper headers and render reliably across browsers. A simple drop-in fix for common SVG display issues in Laravel apps. | 5 | 5 | 0 | 231 | 0 | 9.5 | 23.8 | MIT | 6 months ago | |
| elegantweb/sanitizer | 0.85 | 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 | |
| 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 | |
| lisowiecw/filament-media-library | 0.85 | Filament Media Library provides a ready-to-use media manager for Filament panels: upload, browse, search, and organize files, then attach media to Eloquent models. It simplifies handling images and documents in admin resources with an intuitive interface. | 0 | 0 | 0 | 1 | 1 | 17.4 | 4.8 | MIT | 1 month ago | |
| 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 | |
| webpatser/laravel-sanitize | 0.85 | — | 7 | 8 | 1 | 165 | 0 | 0.0 | 13.0 | — | — | |
| dmhendricks/file-icon-vectors | 0.85 | A PHP library that maps file extensions to crisp SVG icons, making it easy to display accurate file-type icons for documents, media, archives, and more. Includes multiple icon styles, simple helper methods, and Laravel support for quick integration. | 381 | — | 78 | — | 14 | 8.4 | 4.9 | MIT | 8 years ago |
|
| 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 | — | — | |
| 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 | |
| graham-campbell/security | 0.84 | 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 | — | — | |
| nothingworks/blade-svg | 0.84 | A Laravel package for inlining SVG files directly in Blade templates. Use the @svg directive to embed icons and graphics with custom attributes and classes, plus caching for performance. Manage and style SVGs with CSS without extra HTTP requests. | 2,488 | 2,286 | 162 | 6K | 0 | 30.5 | 8.3 | MIT | 4 months ago | |
| graham-campbell/security-core | 0.84 | Core security utilities for Laravel, providing a lightweight foundation for sanitizing user input, escaping output, and defending against XSS. Powers the graham-campbell/security package and can be used standalone in any PHP or Laravel application. | 0 | 31 | — | 16K | — | 0.3 | 55.3 | — | — | |
| masterro/laravel-xss-filter | 0.84 | 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 | |
| blade-ui-kit/blade-icons | 0.84 | Blade Icons lets you drop SVG icons into Laravel Blade views with a simple component or directive, like or @svg('camera', 'w-6 h-6'). It's a lightweight base package with many third-party icon set packages available. | 2,488 | 2,493 | 161 | 7M | 0 | 40.4 | 53.2 | MIT | 4 months ago | |
| atelier/svg | 0.84 | atelier/svg is a Laravel package for managing SVG assets. It provides a clean API for loading, sanitizing, caching, and rendering SVG files, so you can safely embed icons and images in Blade views with minimal boilerplate. | 14 | 11 | 1 | 453 | 0 | 17.9 | 23.9 | MIT | 1 month ago | |
| 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 |
How can I help you explore Laravel packages today?