joomla/filter
Joomla Filter provides input sanitization and filtering utilities for PHP apps. Use InputFilter to allow/block specific HTML tags and attributes, and OutputFilter for safe output helpers like URL-safe strings. Composer installable, lightweight, framework-ready.
Architecture fit: The Joomla Filter package is designed for Joomla ecosystem applications, not Laravel. While it's a standalone PHP package, Laravel already has robust built-in sanitization (Blade auto-escaping, Illuminate\Validation) and third-party solutions like HTMLPurifier for HTML filtering. This package offers overlapping functionality with no clear advantage over Laravel's native tools or established alternatives.
Integration feasibility: Composer installation is straightforward, but deep integration would require significant adaptation. The package's InputFilter class assumes Joomla-specific context (e.g., OutputFilter::stringURLSafe requires Joomla Language package), creating compatibility gaps with Laravel's architecture. No Laravel-specific adapters or documentation exist.
Technical risk: High. The package has a documented CVE-2022-23800 (inadequate content filtering) affecting versions 1.0.0-1.4.3 and 2.0.0. With only 15 stars and 0 dependents, community support is minimal. Recent releases (e.g., 4.0.0 requiring PHP 8.3) suggest unstable maintenance cycles. Security vulnerabilities and lack of active development pose significant risks.
Key questions:
e(), strip_tags(), HTMLPurifier) fail to meet specificHow can I help you explore Laravel packages today?