Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Request Sanitizer Laravel Package

arondeparon/laravel-request-sanitizer

Sanitize incoming request data before validation in Laravel. Define reusable sanitizers to trim, cast, or transform input—individually or in pipelines—keeping controllers and form requests clean. Integrates smoothly with Laravel's validation lifecycle.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Speeds delivery of safer, cleaner form handling in Laravel by standardizing pre-validation sanitization instead of duplicating trim/normalize/strip logic across FormRequests.
  • Supports roadmap decisions around input hygiene, security hardening, and technical-debt reduction without committing to a custom internal sanitization framework.
  • Informs build-vs-buy: adopt the MIT package for straightforward Laravel request sanitization; build internally only if sanitization rules are highly domain-specific, auditable, or compliance-critical.
  • Useful for common flows such as account/profile forms, contact/support forms, admin filters, lead capture, and other user-generated text inputs where normalization before validation improves data quality.
  • Helps product and engineering align on a consistent input contract: sanitize predictable, low-risk fields before validation, while keeping validation, authorization, and output encoding as separate responsibilities.
  • The 6.2.0 release adds Laravel 12 support, which keeps the package viable for teams planning or currently executing a Laravel 12 upgrade and removes a common blocker in framework-modernization roadmaps.

When to Consider This Package

  • Consider it when the product is Laravel-based, already uses FormRequests or similar validation flows, and has repeated ad hoc sanitization code that would benefit from a small, MIT-licensed utility.
  • Confirm version compatibility before adoption: 6.2.0 explicitly supports Laravel 12 (alongside earlier supported versions), so verify your target Laravel/PHP matrix against the package's documented constraints.
  • Adopt only after confirming documentation quality, test coverage, sanitizer behavior, and that the package is actively maintained enough for your risk tolerance. The 6.2.0 compatibility release is a positive maintenance signal but is a narrow change, not a feature expansion.
  • Run a security and data-integrity review before using it on sensitive fields; sanitization must not corrupt passwords, rich text, identifiers, legal values, or data needed for audit.
  • Look elsewhere when you need enterprise support/SLA, regulated compliance controls, complex domain normalization, file/HTML sanitization, framework-agnostic tooling, or a large actively maintained ecosystem.
  • Avoid it as a substitute for validation, authorization, rate limiting, output escaping, or secure coding practices; if the team cannot pin versions and test sanitizer rules, prefer a small internal implementation.

How to Pitch It (Stakeholders)

For executives: this is a low-cost, MIT-licensed Laravel utility that can reduce custom input-cleanup code and improve consistency before validation. The latest release (6.2.0) adds Laravel 12 support, which reduces upgrade friction and extends the package's useful life across your framework roadmap. It is a tactical quality/security hygiene improvement, not a silver bullet, and should be piloted on low-risk forms with clear success measures.

For engineering: the package centralizes pre-validation sanitization in Laravel request flows, reducing duplicated boilerplate and making behavior easier to test. Version 6.2.0 is a compatibility-only release adding Laravel 12 support, so treat it as a maintenance and upgrade-unblocking change rather than a functional one — no new sanitizer capabilities or breaking changes are indicated. Recommend pinning the version, reviewing every sanitizer rule, keeping validation and output encoding separate, and adding regression tests for fields where normalization could alter meaning. If you are on or moving to Laravel 12, this release removes a compatibility blocker; start with a time-boxed pilot on non-critical forms, measure reduced duplication and input defects, then decide whether to standardize or replace with an internal solution if requirements become more complex.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox