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.
Consider it when:
Look elsewhere when:
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.
How can I help you explore Laravel packages today?