enshrined/svg-sanitize
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| rhukster/dom-sanitizer | 0.81 | PHP 7.3+ DOM/SVG/MathML sanitizer using DOMDocument and DOMPurify-based allowlists. Removes dangerous tags/attributes, with options for namespace/PHP/HTML/XML stripping and output compression. Customize allowed/disallowed tags and attributes. | 11 | 11 | 4 | 148K | 0 | 23.2 | 65.0 | MIT | 1 week ago | |
| dompdf/php-svg-lib | 0.77 | PHP library for parsing and rendering SVG documents. Provides an object model for SVG elements, support for styles, paths, and basic shapes, and can render to common backends (e.g., PDF via dompdf). Useful for embedding SVG graphics in PDFs. | 1,443 | 1,446 | 82 | 3M | 24 | 42.0 | 65.3 | LGPL-3.0 | 3 months ago | |
| voku/anti-xss | 0.77 | 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. | 705 | 723 | 116 | 238K | 20 | 14.7 | 47.5 | MIT | — | |
| ezyang/htmlpurifier | 0.76 | 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,386 | 3,491 | 354 | 7M | 106 | 68.8 | 86.5 | LGPL-2.1 | 5 months ago | |
| zendframework/zend-coding-standard | 0.64 | Zend Framework Coding Standard ruleset for PHP_CodeSniffer to enforce ZF repository style, with composer scripts for checking (phpcs) and auto-fixing (phpcbf). Note: repository abandoned; moved to laminas/laminas-coding-standard. | 35 | 42 | 7 | 2K | 7 | 11.9 | 31.0 | BSD-3-Clause | 6 years ago | |
| symplify/easy-coding-standard | 0.62 | Easy Coding Standard (ECS) makes PHP coding standards effortless on PHP 7.2–8.5. Fast parallel runs, supports PHP_CodeSniffer and PHP-CS-Fixer, uses prepared rule sets, generates ecs.php config on first run, and can check and auto-fix code with --fix. | 1,603 | 1,612 | 93 | 882K | 8 | 36.9 | 47.2 | MIT | 5 months ago | |
| zircote/swagger-php | 0.62 | swagger-php generates OpenAPI 3.0/3.1/3.2 documentation from your PHP 8.2+ code using attributes (preferred) or optional Doctrine annotations. Use it via CLI or programmatically, with helpful error reporting and a full documentation site. | 5,287 | 5,372 | 947 | 3M | 13 | 73.1 | 51.2 | Apache-2.0 | 1 month ago | |
| jawira/plantuml-encoding | 0.61 | PHP library providing PlantUML text encoding helpers. Use encodep() to convert an @startuml diagram (UTF-8) into the compressed URL-safe string used by plantuml.com. Includes encode6bit(), append3bytes(), and encode64(). | 20 | 20 | 2 | 19K | 0 | 21.4 | 48.1 | MIT | 1 year ago | |
| webimpress/coding-standard | 0.61 | Opinionated PHP_CodeSniffer rules from Webimpress for consistent PHP style. Extends common standards, adds project conventions, and ships with ready-to-use configs for enforcing formatting and best practices across your codebase. | 14 | 14 | 7 | 62K | 5 | 29.2 | 61.9 | BSD-2-Clause | 1 year ago | |
| wyrihaximus/coding-standard | 0.59 | PHP coding standard package for consistent formatting and style in PHP projects. Provides ready-to-use rulesets and configuration to streamline linting, code style checks, and enforcement across teams and CI pipelines. | 0 | 0 | 0 | 49K | 1 | 29.1 | 65.0 | MIT | 2 months ago |
How can I help you explore Laravel packages today?