PHPackages                             soluble/dbwrapper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. soluble/dbwrapper

ActiveLibrary[Database &amp; ORM](/categories/database)

soluble/dbwrapper
=================

Universal minimalist database wrapper

2.0.0(7y ago)71.5k[1 PRs](https://github.com/belgattitude/soluble-dbwrapper/pulls)3MITPHPPHP ^7.1

Since Jan 1Pushed 5y ago2 watchersCompare

[ Source](https://github.com/belgattitude/soluble-dbwrapper)[ Packagist](https://packagist.org/packages/soluble/dbwrapper)[ Docs](http://soluble.io)[ RSS](/packages/soluble-dbwrapper/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)Dependencies (10)Versions (19)Used By (3)

soluble/dbwrapper
=================

[](#solubledbwrapper)

[![PHP 7.1+](https://camo.githubusercontent.com/375e8de41f75571c97dd554f5c9f27ae12cd39c71eb6a02478a79f5962e5801e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d372e312b2d6666363962342e737667)](https://packagist.org/packages/soluble/dbwrapper)[![Build Status](https://camo.githubusercontent.com/299d143e72999f2a3dfeaba0c9cc128631b4efffaa56fb1b8f393a18f9271b22/68747470733a2f2f7472617669732d63692e6f72672f62656c6761747469747564652f736f6c75626c652d6462777261707065722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/belgattitude/soluble-dbwrapper)[![codecov](https://camo.githubusercontent.com/c9bf432cdd0b467ce616f35a9106632bea242fbf767b0aca280a5ce99bb1bb20/68747470733a2f2f636f6465636f762e696f2f67682f62656c6761747469747564652f736f6c75626c652d6462777261707065722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/belgattitude/soluble-dbwrapper)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/11682fc5f6407586dbdd9cd73e047bd3ff16a62371d7d006563e5df3bb9f0a45/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62656c6761747469747564652f736f6c75626c652d6462777261707065722f6261646765732f7175616c6974792d73636f72652e706e673f733d36663361623931663931366266363432663234386538326332393835376639346362353062623333)](https://scrutinizer-ci.com/g/belgattitude/soluble-dbwrapper)[![Latest Stable Version](https://camo.githubusercontent.com/6866ba2493dac55122e1b71b597df8d61f4de1e0ed1cc368ebd958f79d6f7f85/68747470733a2f2f706f7365722e707567782e6f72672f736f6c75626c652f6462777261707065722f762f737461626c652e737667)](https://packagist.org/packages/soluble/dbwrapper)[![Total Downloads](https://camo.githubusercontent.com/ef4d90e7b8b4278b50acce2191a690eec99866970daef4d4822eeb8a7944a258/68747470733a2f2f706f7365722e707567782e6f72672f736f6c75626c652f6462777261707065722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/soluble/dbwrapper)[![License](https://camo.githubusercontent.com/d346e3785fe19e0cf1ad738710bf4ff1b3f8b7ab91451c5538460572f7cbd739/68747470733a2f2f706f7365722e707567782e6f72672f736f6c75626c652f6462777261707065722f6c6963656e73652e706e67)](https://packagist.org/packages/soluble/dbwrapper)

Introduction
------------

[](#introduction)

Minimalist *(but universal)* database wrapper to rule them all *(and to not choose)*.

Features
--------

[](#features)

- Provide a generic API for handling database access across various implementations.
- Lightweight, framework adaptive and agnostic.
- Natively supports `mysqli`, `pdo_mysql`, `pdo_sqlite` drivers.
- Bridged implementations of `zend-db`, `laravel` and `doctrine`.
    - Access to Oracle, SQL-Server, PostgreSql,...
    - Allow to develop database portable libraries.
- Adhere to soluble programming standards.

Requirements
------------

[](#requirements)

- PHP 7.1 optional ext-mysqli/PDO

> For PHP 5.6+, 7.0+ or HHVM &gt;= 3.9 look at version 1.3. For PHP &lt; 5.6 take the 1.2 version

Documentation
-------------

[](#documentation)

- [Manual](http://docs.soluble.io/soluble-dbwrapper/manual/) in progress and [API documentation](http://docs.soluble.io/soluble-dbwrapper/api/) available.

Installation
------------

[](#installation)

Instant installation via [composer](http://getcomposer.org/).

```
$ composer require soluble/dbwrapper
```

Quick start
-----------

[](#quick-start)

### Connection

[](#connection)

Create an adapter from an existing Mysqli connection

```
