myaza-software/schema-validator
Schema Validator for Laravel lets you define and validate structured data against reusable schemas, with clear error messages and seamless integration into your app's validation workflow.
$request->validate() calls scattered across controllers.0.0.1 (single release, Aug 2021), 5 stars, with a metadata/description mismatch — the package listing says "for Symfony" while the documentation describes a Laravel package. That inconsistency alone is a due-diligence red flag: we cannot reliably tell what the artifact actually is. The realistic decision is "harvest the pattern, do not adopt the dependency."Consider only as a design reference, not a dependency. The concept — declarative schema definitions reused across HTTP, API, and CLI, with nested/array support and custom messages — is worth reading and copying into an internal implementation. The code itself does not clear the bar.
Adoption criteria it fails:
0.0.1 is pre-SemVer-stable by definition; there is no upgrade history, no deprecation surface, and no community battle-testing.illuminate/* constraints, which will block a Laravel 10/11 upgrade — a cost that lands months later, on a different team.When to look elsewhere:
spatie/laravel-data for DTO hydration if that is the actual gap. Both are maintained and carry upgrade paths.The narrow case where it could squeak by: a time-boxed spike to evaluate the developer experience of schema-driven validation, in a disposable or air-gapped internal tool, with the explicit understanding that nothing ships to production on it. Even then, MIT licensing means forking and owning it is the only defensible long-term form — which raises the real question of why we wouldn't just write the ~100-line equivalent ourselves.
To executives (one paragraph): A small open-source package promises to let one schema definition validate form submissions, API payloads, and console commands consistently. The idea is sound and maps to a real duplication problem in our validation code. The package itself is not adoptable: it is archived, has had exactly one release (2021, version 0.0.1), has negligible adoption, and its own listing contradicts its documentation. There is no maintenance or security-patch path. Recommendation: do not add it as a dependency; instead fund a short internal effort to implement the pattern ourselves or standardize on a maintained alternative. Cost of the recommendation is roughly an engineer-week; cost of the alternative is inheriting an unmaintained validation layer we cannot patch.
To engineering (the ask):
composer require this. It is archived at 0.0.1, single-release, pre-stable, with an unresolved Symfony/Laravel identity conflict in its metadata.App\Contracts\...) so the underlying mechanism stays swappable — that wrapper is cheap insurance regardless of what we pick.spatie/laravel-data if clean DTO mapping is the actual gap. Both have upgrade paths and active maintenance.How can I help you explore Laravel packages today?