respect/validation-bundle
A Symfony bundle that integrates the Respect\Validation library, exposing its expressive validation rules as container services for easy use in Symfony applications. Wire validators into your services and validate data with Respect's fluent, readable rule syntax.
Illuminate\Validation (rules, form requests, Rule objects) or introduces a second, fluent rule engine (respect/validation). This package is the artifact of "buy the rules, keep the framework thin" — and its 17 stars and zero dependents are the counterargument.respect/validation-bundle is a Symfony bundle, not a Laravel package. Laravel does not boot Symfony bundles, so its DI registration, configuration tree, and violation-formatting layer are unusable here. That makes this a recurring governance decision: do we vet dependencies against our actual framework before the team spends a sprint on a spike?respect/validation ships a pre-built rule catalog (IBAN, tax IDs, credit card, UUID, phone, date, nested/attribute rules). This supports the decision to avoid hand-rolling compliance-sensitive validators — the rules are the buy, and they are permissively licensed (BSD-3-Clause).Worth a look (as reference material, not a dependency):
respect/validation library for a specific rule gap and want to see how it composes with a framework's validator contracts.Look elsewhere — do not composer require:
respect/validation directly, or don't use it at all.Illuminate\Validation natively in Laravel; use symfony/validator in Symfony. Neither needs this bridge.Illuminate\Validation already covers the rule. Confirm the gap first; the most common finding is that there isn't one.Recommendation: Treat as reference architecture only. If the product needs a rule Respect provides, adopt respect/validation as a library and write a small adapter (service provider plus Laravel Rule implementations). Skip the bundle entirely.
Executive summary: This package is a thin, effectively abandoned Symfony wrapper around a mature, permissively licensed PHP validation library. It is not a Laravel package and cannot be adopted by our stack as-is. The decision it informs is real, though: buy the validation rules instead of building them. If we need international or regulated-field validation — tax IDs, IBANs, identity documents — the underlying library lets us ship faster than custom engineering, at the cost of one small adapter we own. Recommendation: do not adopt the package; treat it as a pattern reference; adopt the library only behind a Laravel-owned adapter, and only when a specific rule gap is proven.
For engineering: Take respect/validation as a library if its rule catalog or fluent API fills a concrete gap in Illuminate\Validation. Do not attempt to install or register the Symfony bundle in Laravel — it will not boot and would create dependency conflicts with no payoff. Instead, spike one or two high-value rules, expose them as Rule objects or a dedicated validator service, and pin the library. Keep Laravel's native validator as the primary interface, normalize error messages to the existing error bag, and add contract tests before any production use. The bundle itself is worth reading for its constraint-to-violation mapping — not worth depending on.
On risk: Low stars, zero dependents, and an unmaintained Symfony lifecycle make this a deprecation candidate, not a roadmap item. BSD-3-Clause keeps forking legally viable, but forking a Symfony bundle to serve Laravel is poor economics. The realistic risks are organizational: a second, drifting validation path, inconsistent error formats, and an unowned dependency. Assign an owner for the adapter, or don't build it.
How can I help you explore Laravel packages today?