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

Database Laravel Package

hyperf/database

Hyperf Database brings Laravel-style query builder, ORM, migrations, and connection pooling to Hyperf. Coroutine-safe and PDO-based, it simplifies MySQL/PostgreSQL access in Swoole apps with models, pagination, transactions, and schema tooling.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for the data layer. This package is a batteries-included database abstraction layer (query builder, ORM/model layer, pagination, connection handling) for PHP services running in coroutine-based runtimes. Adopting it removes weeks of in-house plumbing from the roadmap and lets the team spend that capacity on product features rather than driver code.
  • Framework/runtime standardization. Choosing it is effectively a bet on the Hyperf/PHP-coroutine ecosystem. That is an architecture decision with a 2–3 year tail, not a sprint decision — treat it as an ADR (architecture decision record) item, not a backlog ticket.
  • Roadmap de-risking for high-concurrency features. Because it handles pooled/reused connections rather than one-connection-per-request, it supports features that are expensive under traditional PHP-FPM models (long-lived workers, streaming, chat/notification fan-out, high-QPS read paths) without a separate service tier.
  • Migration sequencing. If the product roadmap includes moving off a traditional Laravel/FPM deployment, this is a candidate low-friction step: the ORM and query-builder surface will feel familiar to engineers with Eloquent experience, shortening the retraining and rewrite estimate.
  • Vendor/ecosystem concentration risk. Adopting it concentrates dependency on a smaller ecosystem than Laravel's. That belongs in the risk register alongside a documented exit path (raw PDO/another query layer) in case maintenance cadence slows.
  • On this release (v3.2.5): the version bump from v3.2.3 is a patch-level increment with no breaking changes, deprecations, or new capabilities surfaced in the release metadata. It is a maintenance signal — evidence of an actively patched line, not a trigger to revisit scope, budget, or the build-vs-buy call. No roadmap replanning is warranted; it is safe to keep the current pin and schedule a routine patch upgrade in the normal dependency cycle.

When to Consider This Package

Consider it when:

  • The service runs on (or is moving to) a coroutine/async PHP runtime — Swoole, Swow, or a similar event-driven server — where per-request connection handling is a bottleneck.
  • You need an ORM/query-builder layer with pooling, and the team already has Eloquent-style muscle memory.
  • You are consolidating many small PHP services and want one consistent data-access idiom across them.
  • You are standardizing on the Hyperf component family and want coherent versioning across those components.
  • You need a patch-cadence-maintained dependency; the v3.2.x line shows active maintenance.

Look elsewhere when:

  • The product is a conventional Laravel app on PHP-FPM. Installing a parallel database component adds a second data layer and a second upgrade path for little gain — use the framework's native offering.
  • The team has no coroutine/async PHP experience and no appetite to acquire it. The failure mode is subtle concurrency bugs in production, not a compile error.
  • You need a large hiring pool, extensive third-party package coverage, or abundant Stack Overflow/agency support — that is Laravel/Symfony's advantage, and it is a real cost.
  • You require long-term commercial support contracts or formal LTS guarantees with an indemnity path.
  • Your workload is low-traffic CRUD. The pooling and async benefits are unquantifiable at low QPS; the added runtime complexity is not.

How to Pitch It (Stakeholders)

For executives (30 seconds): We can either build and maintain our own database access layer or adopt a maintained open-source one. This package gives us a production-grade data layer that handles high-traffic workloads more efficiently than the standard PHP approach, with no licensing cost. The trade-off is that it ties us to a smaller ecosystem than Laravel's — a manageable risk if we keep a documented exit path. The latest release is a routine patch, indicating the project is actively maintained and not abandoned; there is no action required and no impact on current scope or budget.

For engineering leadership: This is a mature, actively patched component with an Eloquent-like API, so ramp-up cost is measured in days, not months. The real cost is operational: it assumes a coroutine runtime, and pooled connections demand discipline (no state leaking across requests, careful transaction scoping). Recommend a bounded spike — one non-critical service, instrumented — before any broader standardization, with explicit success criteria on p95 latency, error rate, and connection-pool saturation.

Ask: Approve a time-boxed evaluation on one service, and record the ecosystem-concentration risk with an owner and a documented fallback.

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.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo