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

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

ark/database
============

Light weight database abstraction

v0.2.2(8y ago)117.8k3[2 issues](https://github.com/arkphp/database/issues)MITPHP

Since Mar 31Pushed 8y ago3 watchersCompare

[ Source](https://github.com/arkphp/database)[ Packagist](https://packagist.org/packages/ark/database)[ Docs](https://github.com/arkphp/database)[ RSS](/packages/ark-database/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (14)Used By (0)

ark/database [![Travis](https://camo.githubusercontent.com/e64fadfbcffde1af41e17e807c947e5e7a15c39666035b9d3c257fe8880d8d0b/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f61726b7068702f64617461626173652e737667)](https://travis-ci.org/arkphp/database) [![Documentation Status](https://camo.githubusercontent.com/4425c02afc3a7e23a80fcfe207bb461371e109fb227cf29284a5b553a035fbce/68747470733a2f2f72656164746865646f63732e6f72672f70726f6a656374732f61726b2d64617461626173652f62616467652f3f76657273696f6e3d6c6174657374)](https://readthedocs.org/projects/ark-database/?badge=latest) [![Packagist](https://camo.githubusercontent.com/a6f9a52b72bda0db93ec1047fee6af69738761afdda381f5b5ba545050ab95df/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61726b2f64617461626173652e737667)](https://packagist.org/packages/ark/database)
==================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#arkdatabase---)

Light weight database abstraction.

[Document](http://ark-database.readthedocs.org/en/latest/)

[API](http://arkphp.github.io/database/)

Quick Start
-----------

[](#quick-start)

### Create Database Connection

[](#create-database-connection)

First of all, create a database connection with DSN, username and password. Take the Mysql Database for example:

```
