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

Validator Laravel Package

alt-three/validator

Alt Three Validator is a lightweight Laravel package that extends the built-in validator with a hash rule. Use it to verify that an input matches a stored hash, such as checking a password against a hashed value, with simple rule syntax in your validation rules.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy (or rather, build vs. vendor): The package is a thin abstraction over Illuminate\Validation\Factory — essentially a service class exposing a with(...)->validate(...) flow plus a dedicated ValidationException. At 20 stars and zero dependents, this is a "copy the pattern, not the dependency" decision. The honest build estimate is under a day of engineering for an equivalent in-house class.
  • Where validation lives in the architecture: The real decision this package informs is whether validation is an HTTP concern (Form Requests, $this->validate()) or a domain/application concern invoked from command handlers, queued jobs, console commands, and imported data paths. This package bets on the latter, which is a defensible product-architecture position even if the package itself is not the vehicle for it.
  • Roadmap and technical-debt prioritization: Archived since 2020-07-25 with no releases since, no dependents, and a composite score of 0.08 — this belongs on the "known deprecated dependency, schedule removal" list rather than the "evaluate for adoption" list. If it is currently in a codebase, the PM decision is when to replace it, not whether.
  • Consistency of failure modes: The one durable product value here is a single, catchable validation failure type shared across HTTP, CLI, queue, and API entry points — which simplifies error rendering and user-facing messaging. That outcome can be achieved with a small internal class or with Illuminate\Validation\ValidationException directly.
  • Framework upgrade gating: Any decision to move to Laravel 10/11, PHP 8.2+, or typed service signatures is blocked by packages in this state. Treat it as a line item in upgrade planning.
  • Not supported by this package: anything requiring security patches, PHP 8.x compatibility guarantees, or vendor support. There is no maintainer to escalate to.

When to Consider This Package

Adopt only under narrow, legacy conditions:

  • You are maintaining an existing Laravel 5.x/6.x application already built on the Alt Three stack (e.g., alt-three/command-bus), where this package is a working, API-compatible piece of an existing composition — and the cost of removal exceeds the cost of carrying it short-term.
  • You specifically need validation invoked outside the HTTP layer with a uniform exception type, and you want a pre-built implementation rather than writing ~100 lines yourself.
  • The code is vendor-pinned, the app is not receiving framework upgrades, and the MIT license plus small surface area makes a local fork trivially auditable.

Look elsewhere — or build in-house — when:

  • The project is new. Archived-and-unmaintained is disqualifying regardless of how small the surface is.
  • You target Laravel 9+ or PHP 8.1+. No releases since mid-2020 means no compatibility guarantees; verify against your framework version before assuming it even installs.
  • You need community validation. Zero dependents means no downstream usage to surface bugs, no Stack Overflow corpus, and no de facto maintenance.
  • Standard alternatives cover the need: Form Requests and Validator::make() for HTTP, Illuminate\Validation\ValidationException for failure handling, spatie/laravel-data if you want DTO-plus-validation, or a 50-line internal Validator service if you want the command-bus pattern without the dependency.
  • You require a support contract, CVE response, or an owner who will accept a pull request.

How to Pitch It (Stakeholders)

To executives: This is a free, MIT-licensed utility that wraps Laravel's built-in validation. It is not a strategic dependency and carries no licensing cost — but it is archived, has had no release since July 2020, and has zero downstream projects using it. The commercial exposure is not license fees; it is the engineering time to replace it during a framework upgrade and the absence of anyone to call if it breaks. Recommendation: do not adopt for new work; if already present, fund a small removal ticket and fold the behavior into our own code.

To engineering: It is a small, single-purpose abstraction — a validation service and a typed exception over Laravel's validator factory. That makes it cheap to fork or reimplement and expensive to depend on. There is no maintainer, no release cadence, and no usage base to shake out bugs. If the pattern (validate in command handlers, not just controllers) is valuable to us, we should own it: either use Illuminate\Validation\ValidationException directly or write the thin wrapper in-house so it moves with our Laravel version. Either way, budget roughly a day and treat this as a cleanup item, not an architecture decision.

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.
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels