PHPackages                             ofmadsen/livid - 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. ofmadsen/livid

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

ofmadsen/livid
==============

Data Mapper (ORM) for PHP

0.2.1(8y ago)241MITPHPPHP &gt;=5.6.0

Since Apr 22Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ofmadsen/livid)[ Packagist](https://packagist.org/packages/ofmadsen/livid)[ Docs](https://github.com/ofmadsen/livid)[ RSS](/packages/ofmadsen-livid/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

Livid
=====

[](#livid)

Livid is a Data Mapper (ORM) for PHP.

[![Build Status](https://camo.githubusercontent.com/92af157b67e9c3c1b6583c93eef5f2e4cb6211f9c0a10812b2ab1d0b70fac72d/68747470733a2f2f7472617669732d63692e6f72672f6f666d616473656e2f6c697669642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ofmadsen/livid)[![Codacy Badge](https://camo.githubusercontent.com/6e45da7517b6ad4a64cf5b25dd73aa2100559301e35361125d92e7c306db7f45/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f636f7665726167652f3435363031343831343637343466626261616265363634653139616335663830)](https://www.codacy.com/app/ofmadsen/livid)[![Codacy Badge](https://camo.githubusercontent.com/8987b18447e0abd5ae3d94994124c56fa7aafcbbc3f199a367347e90b6441b83/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f67726164652f3435363031343831343637343466626261616265363634653139616335663830)](https://www.codacy.com/app/ofmadsen/livid)

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

[](#installation)

Install the latest version with:

```
$ composer require ofmadsen/livid
```

Features
--------

[](#features)

- Uses `PDO` as database driver (supporting multiple database types)
- Support connections to multiple databases (same and/or different types)
- Lazy-load connection to the database (connect when queried)
- Query result with single, all or scalar values
- Automatic conversion of column snake case naming to entity property camel case naming

Basic usage
-----------

[](#basic-usage)

Bootstrapping:

```
