PHPackages                             bootpress/database - 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. bootpress/database

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

bootpress/database
==================

A PDO wrapper with lazy connections and query profiling.

v1.0.2(1y ago)01.3k↑2900%12MITPHPPHP &gt;=5.4

Since Sep 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Kylob/Database)[ Packagist](https://packagist.org/packages/bootpress/database)[ Docs](https://www.bootpress.org/components/database.html)[ RSS](/packages/bootpress-database/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (2)

use BootPress\\Database\\Component as Database;
===============================================

[](#use-bootpressdatabasecomponent-as-database)

[![Packagist](https://camo.githubusercontent.com/656d4d7339c744eee17e9db52fb7d68d5ff45179386e7882bad437a01fae7e8e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626f6f7470726573732f64617461626173652e7376673f7374796c653d666c61742d737175617265266c6162656c3d5061636b6167697374)](https://packagist.org/packages/bootpress/database)[![License MIT](https://camo.githubusercontent.com/a7e65aee57b11d28e4caff8b945729a66be0bb663f7f93bd24c5aa65699f148e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![HHVM Tested](https://camo.githubusercontent.com/3422fab0fbdb2e50d74ced25d6df3e7e1be8b373f48c708a785f247a503409d1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4848564d2d5465737465642d3838393262662e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Kylob/Database)[![PHP 7 Supported](https://camo.githubusercontent.com/7dae9186d16bac6b5d5cee34d3bec4400516657b575bc1c784125d70a6871126/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f504850253230372d537570706f727465642d3838393262662e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Kylob/Database)[![Build Status](https://camo.githubusercontent.com/87c39f03362a3b8f76dd1cd933e2d4c6a10c39ce1477451b87f833c5837c32b8/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4b796c6f622f44617461626173652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Kylob/Database)[![Code Climate](https://camo.githubusercontent.com/8e3d32c0c9d12b5c28bb53c09c5af01a7a59129f497ea8baa81b48591076da32/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6769746875622f4b796c6f622f44617461626173652e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/Kylob/Database)[![Test Coverage](https://camo.githubusercontent.com/b5e19d7dba56fd695640c275ca5ff81669ead58e09a8d82e072f57154df602cc/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f636f7665726167652f6769746875622f4b796c6f622f44617461626173652e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/Kylob/Database/coverage)

A PDO wrapper with lazy connections, query profiling, and convenience methods that simplify and speed up your queries.

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

[](#installation)

Add the following to your `composer.json` file.

```
{
    "require": {
        "bootpress/database": "^1.0"
    }
}
```

Example Usage
-------------

[](#example-usage)

```
