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

Flexible Where Between Laravel Package

primitive/flexible-where-between

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for a micro-capability. This is not a platform bet; it is a thin convenience layer over Laravel's native whereBetween. The real decision is "do we adopt a third-party dependency for something we could express as a local query scope or Eloquent macro in ~30 lines?" For most teams the answer is build, but the package is a cheap way to validate the ergonomics first.
  • Standardizing ad-hoc range filtering. The clearest use case is admin panels, reporting screens, and internal dashboards where date/numeric range filters get copy-pasted across controllers and repositories. If your codebase has a dozen slightly different whereBetween chains, this is a candidate for consolidation — feature-level, not roadmap-level.
  • Accelerating a filter-heavy feature slice. For a scoped piece of work (a report builder, an audit log viewer, an export endpoint with from/to parameters), it can shorten the "get it working" phase. Treat it as scaffolding, not architecture.
  • Informing a deprecation/inheritance decision. With a 0.105 score, zero dependents, and a last release of November 2020, evaluating this package is really a decision about technical debt tolerance: does the team accept an unmaintained dependency to save a day, or does it prefer the in-house equivalent that survives the next Laravel major?
  • Vendor-or-fork as an explicit option. MIT licensing means the fallback is clean: copy the relevant logic in-tree, attribute it, and own it. That reframes the decision from "adopt a dependency" to "harvest a snippet," which is usually the right framing for packages at this maturity.

When to Consider This Package

Consider it when all of the following hold:

  • You are on a Laravel version contemporary with the package's last release (roughly Laravel 7/8 era) or you are prepared to verify compatibility yourself against your target version.
  • You have a genuine, repeated need for flexible range conditions across multiple columns or input shapes, not a one-off query.
  • You are comfortable pinning the version, vendoring the source, or otherwise treating it as frozen code you own.
  • The alternative — writing an in-house scope — would cost materially more than reviewing and adopting this.

Look elsewhere — or simply write it yourself — when:

  • You are starting a new project or targeting a current Laravel release. Unmaintained query-builder extensions are a common source of silent breakage across major upgrades, particularly around grammar and binding changes.
  • You need anything beyond trivial range logic (timezone handling, open-ended ranges, indexed-column performance guarantees). Verify the generated SQL and index usage before trusting it in a high-traffic path.
  • Your team has a dependency policy requiring active maintenance, security response, or a minimum adoption threshold. Fifteen stars and zero dependents will not clear most of those gates.
  • The actual requirement is a single whereBetween call. Native Laravel already does this correctly; adding a package here is pure overhead.

In short: viable as a reference implementation or a vendored snippet, questionable as a live Composer dependency.

How to Pitch It (Stakeholders)

To executives: This is a tiny, free, open-source utility that would save a small amount of engineering time on internal filtering and reporting screens. It is not a strategic dependency and carries no commercial commitment. The honest recommendation is that we do not need to "adopt" it — we can read it, borrow the approach, and implement the equivalent ourselves at negligible cost. Net: no budget impact, no vendor risk, marginal time savings if we use it at all.

To engineering: A convenience wrapper that generalizes Laravel's native whereBetween for multi-column and multi-input range queries. MIT-licensed, so we can vendor or fork freely. The caveats are real: last release November 2020, zero dependent packages, no visible maintenance cadence. If we want the behavior, the defensible path is to lift the logic into a local query scope or macro, attribute the source, and own it — that gets us the ergonomics without inheriting an unmaintained dependency across future Laravel majors. If someone wants to trial the package directly, pin the version, and confirm the generated SQL and bindings on our target Laravel release first.

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.
htinlynn/genius-helper
maco-studios/hephaestus
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