graham-campbell/database
A Laravel database package from Graham Campbell that provides a streamlined, configurable database layer with multiple connections and seamless integration with Laravel's query builder and Eloquent for simple, consistent data access.
v0.1.4-alpha tag, an EOL framework target, and zero dependents is a clean worked example for a minimum-supported-version policy and a "no alpha dependencies in customer-facing paths" rule. Worth citing when someone proposes an unmaintained library to hit a date.GrahamDeprecated namespace is effectively a maintenance transfer to whoever adopts it — that is unbudgeted, permanent ownership.What it does not support: shipping. It cannot be adopted, so it informs architecture decisions and policy, not feature delivery.
Consider it only as a pattern reference or teaching artifact:
Look elsewhere — or build in-house — when:
GrahamDeprecated org, the sole release is v0.1.4-alpha, and there are zero dependents — no ecosystem signal, no peer knowledge base, no Stack Overflow corpus.Modern equivalents when the requirement is real: Eloquent scopes and query objects natively, or spatie/laravel-query-builder for API filtering. The repository pattern itself is roughly 200 lines of conventional code — usually cheaper to write in-house, tested, against the current framework version.
To executives. Recommendation: do not adopt. This is a small, deprecated alpha library pinned to a Laravel version we no longer run, with no downstream users and no maintainer. The idea behind it is sound — encapsulate database access so features are easier to test and change — but the artifact is dead. The product value is conceptual: it gives us a cheap, concrete reference for deciding whether to standardize how our code talks to the database, and it hands us a defensible rule ("no unmaintained alpha dependencies in customer-facing paths") the next time a deadline pushes us toward one. Cost of acting on the good part: a small internal spike. Cost of adopting the package: permanent ownership of unmaintained code on our persistence layer, plus inherited unpatched framework vulnerabilities.
To engineering. Treat it as prior art, not a dependency. It demonstrates a lightweight repository base class over Eloquent — CRUD helpers, pagination, cache-aware reads, wired through Laravel's container — and that shape is worth copying. The implementation is not: Laravel 4.2-era container bindings and autoloading, alpha-tagged, single release, no evidence of tests or CI, and zero dependents to learn from. Also flag the metadata/description mismatch — the changelog shows no feature work, so do not cite the advertised capabilities as delivered functionality. If we want this capability, we build a thin, tested repository layer in-house against our current Laravel version, with our own caching and pagination conventions, isolated behind an internal interface so it can be swapped without touching call sites.
Decision ask. Approve a timeboxed spike (a few days) to define repository and caching conventions for our stack — or explicitly decide against them and document why. Reject adoption of this package on maintenance, compatibility, and maturity grounds. If any part of the estate still runs Laravel 4.2, treat that as the remediation item, not this library.
How can I help you explore Laravel packages today?