coka/rest-request-validator-bundle
API Quality & Developer Experience (DX):
Roadmap Priorities:
Use Cases:
Adopt if:
Look elsewhere if:
For Executives: "This bundle lets us enforce high-quality data standards across our APIs with minimal engineering overhead. By standardizing validation rules, we’ll reduce bugs from malformed inputs, improve developer productivity, and align with our API-first roadmap. The MIT license and Symfony integration make it a low-risk choice for our Laravel stack."
For Engineering: *"This package replaces ad-hoc validation logic with a declarative, reusable system for REST inputs. Key benefits:
Tradeoff: Low adoption (2 stars), but the core concept is battle-tested in Symfony. We’d need to vet its fit for our use cases, but the payoff for API quality is clear."*
For Developers: *"Imagine writing this instead of manual validators:
// Instead of:
$validator = $this->get('validator');
$errors = $validator->validate($request->getData(), [
new Assert\NotBlank(),
new Assert\Type('array'),
]);
// You’d use:
#[Oka\RestRequestValidator(
rules: [
'name' => 'required|string|max:255',
'email' => 'required|email',
],
groups: ['Default']
)]
public function create(Request $request) { ... }
Less boilerplate, more clarity. Perfect for APIs where input quality matters."*
How can I help you explore Laravel packages today?