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

Dbwrapper Laravel Package

soluble/dbwrapper

Soluble DbWrapper provides a lightweight, fluent wrapper around Laravel’s database layer, simplifying common query and persistence tasks while keeping familiar Query Builder conventions. It helps reduce boilerplate for CRUD, filtering, and reusable database logic in PHP applications.

View on GitHub
Deep Wiki
Context7

Extra minimalist but universal database wrapper

Frequently asked questions about Dbwrapper
Is soluble/dbwrapper compatible with Laravel 10 and Laravel 11?
Unmodified, it is unlikely to be compatible. The last release is from January 2019 and almost certainly declares a PHP 7.x constraint, while Laravel 10 and 11 require PHP 8.1 or 8.2 and newer. Composer resolution will probably fail, so adoption realistically means forking to relax the PHP constraint and adding PHP 8 return types and deprecation fixes.
How do I install soluble/dbwrapper in a Laravel application?
You can require it with Composer because the package is small and MIT licensed, but installation is only the mechanical part. It ships no Laravel service provider, facade, publishable config, or Eloquent integration. You must manually instantiate the wrapper, map credentials and driver options from config/database.php into its config object, and register it as a singleton with the correct connection lifecycle.
Does soluble/dbwrapper integrate with Eloquent or Laravel's Query Builder?
No. It is a framework-agnostic PDO abstraction with a thin procedural-style API, not an Illuminate\Database integration. It does not provide Eloquent models, Laravel query builder methods, migrations, or transaction helpers aligned with Laravel contracts. Using it inside a Laravel app creates a parallel data-access path alongside DB::connection() and Eloquent.
What PHP versions does soluble/dbwrapper support?
The package has not been updated since January 2019, so expect a PHP 7.x constraint and no PHP 8 hardening. It has not been proven on PHP 8.1 through 8.3, which are the runtimes used by current Laravel versions. If you adopt it, pin an exact version, fork it for PHP 8 compatibility, and run your own CI before relying on it.
Is soluble/dbwrapper safe for Laravel Octane or queue workers?
That behavior is not proven. The package has no first-class support for long-running workers such as Octane, Swoole, or queue daemons. Reconnect and stale-connection behavior with PDO persistent connections must be tested explicitly. Treat it as unsafe for production workers until you have verified connection lifecycle and error recovery under your runtime.
What are the best alternatives to soluble/dbwrapper in Laravel?
For Laravel applications, use Laravel's built-in DB facade, Query Builder, or Eloquent as the primary data layer. If you need a framework-agnostic abstraction, Doctrine DBAL is more established. A small internal PDO wrapper is often a better fit than an abandoned package. If a legacy module truly needs soluble/dbwrapper, isolate it behind your own DatabaseAdapter contract.
Can I use soluble/dbwrapper for CRUD and filtering in Laravel?
Technically yes, but it is not recommended as a general dependency. Laravel's Query Builder and Eloquent already handle CRUD, filtering, and persistence with better framework integration. If you must use the wrapper, confine it to one bounded legacy context and forbid its use in new code through lint or review rules. Wrap it behind an internal interface so it remains swappable.
Is soluble/dbwrapper actively maintained?
No. The last release was in January 2019, the project has around seven stars and no dependents, and it is a single-maintainer package. There is no PHP 8 hardening, no security patch cadence, and no demonstrated upstream responsiveness. Treat it as abandoned and assume you would inherit maintenance, CI, and security ownership if you adopt it.
How should I test soluble/dbwrapper with Laravel's database drivers?
Add integration tests against every driver you actually run, such as MySQL, PostgreSQL, SQLite, or SQL Server. Verify named and positional parameter binding, nested transaction behavior, error handling, and query logging or tracing. Pin an exact package version, confirm ext-pdo and the specific driver extensions are present, and check Doctrine DBAL version alignment before committing.
Does soluble/dbwrapper conflict with Doctrine DBAL in a Laravel project?
A Doctrine DBAL version conflict is the most likely silent integration issue. The wrapper depends on PDO and Doctrine DBAL, so compare its requirements against the rest of your lockfile with Composer before adoption. If versions conflict, either fork and align the dependency or avoid the package. Register any fork as an internal tagged release through a private path or VCS repository.
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.
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
bernskioldmedia/laravel-harvest
bernskiold/laravel-data-scrubber
bernskiold/laravel-currency-converter
bernskiold/laravel-campaign-monitor
bernskioldmedia/laravel-autotranslate
siberfx/telegram-bot
roy-sandip/laravel-view-extended
gregsphotography/site-builder-core
roy-sandip/laravel-view
anodyne/blade-fluentui-icons
webx-ui/module-catalog-collections