siriusphp/validation
SiriusPHP Validation is a standalone PHP validation library with a rich set of built-in rules, nested array support, custom rules and error messages, and a simple API for validating forms and structured input.
Illuminate\Validation (cheap, but couples domain rules to Laravel) or extract rules into a portable layer shared by a Laravel app, queue workers, CLI jobs, or a plain-PHP service.Consider it when:
Look elsewhere when:
Illuminate\Validation is already installed, maintained, and richer (DB-aware unique/exists, FormRequest integration, localization). Adding this is redundant surface area.For executives: This is a small, MIT-licensed PHP validation library. The interesting part is not the library — it's the architecture decision it enables: it lets us share validation rules across our Laravel app and our non-Laravel PHP services instead of duplicating and drifting. Cost to adopt is low and, critically, it sits behind our own interface, so replacing it later is a contained, ticket-sized job rather than a rewrite. Recommendation: approve it as an isolated component with a named owner and a review date — not as a platform standard.
For engineering: Adopt only behind a Validator adapter/port so no business code imports the package directly. Pin the version, add a smoke test on our target PHP runtime (last release predates current PHP 8.x point releases), and log a six-month review with two pre-agreed exits: Symfony Validator if we need richer rules and active maintenance, or Illuminate\Validation if we consolidate on Laravel. Expect no upstream security patches — budget a fork-and-patch option if the ruleset becomes load-bearing. If validation never leaves the Laravel app, skip this entirely and use the built-in validator.
How can I help you explore Laravel packages today?