PHPackages                             jasny/db-mysql - 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. jasny/db-mysql

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

jasny/db-mysql
==============

A simple DB layer in PHP for using MySQL

v1.1.1(13y ago)131.3k4[2 issues](https://github.com/jasny/DB-MySQL/issues)1MITPHPPHP &gt;=5.3.0

Since Oct 22Pushed 13y ago1 watchersCompare

[ Source](https://github.com/jasny/DB-MySQL)[ Packagist](https://packagist.org/packages/jasny/db-mysql)[ Docs](http://jasny.github.com/DB-MySQL)[ RSS](/packages/jasny-db-mysql/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (1)

Jasny's DB layer (for MySQL)
============================

[](#jasnys-db-layer-for-mysql)

[![Build Status](https://camo.githubusercontent.com/ecddfa1995e6122492547c275ab93fb7e8cb44fc0bc22580cb40cc5636eddd3c/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6a61736e792f44422d4d7953514c2e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/jasny/DB-MySQL)

A simple DB layer in PHP for using MySQL, featuring

- Global connection (singleton)
- Parameter binding
- Quoting tables/fields and values
- Fetch all rows, column, key/value pair and single value
- Simple saving by passing associated arrays
- Query exceptions (instead of returning false)

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

[](#installation)

Jasny DB-MySQL is registred at packagist as [jasny/db-mysql](https://packagist.org/packages/jasny/db-mysql) and can be easily installed using [composer](http://getcomposer.org/). Alternatively you can simply download the .zip and copy the file from the 'src' folder.

Example
-------

[](#example)

```
