PHPackages                             sebastianguzmanmorla/lili-db - 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. sebastianguzmanmorla/lili-db

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

sebastianguzmanmorla/lili-db
============================

Php ORM

v1.0.1(1y ago)114MITPHPPHP &gt;=8.4

Since May 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/sebastianguzmanmorla/LiliDb)[ Packagist](https://packagist.org/packages/sebastianguzmanmorla/lili-db)[ Docs](https://github.com/sebastianguzmanmorla/LiliDb)[ RSS](/packages/sebastianguzmanmorla-lili-db/feed)WikiDiscussions main Synced today

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

 [![Lilith](https://github.com/sebastianguzmanmorla/LiliDb/raw/main/lili.svg?raw=true "Lilith")](https://github.com/sebastianguzmanmorla/LiliDb/blob/main/lili.svg?raw=true)

LiliDb
======

[](#lilidb)

**A Php ORM with extensive usage of closures, reflection and attributes, taking advantage of Php modern features**

*Compatible with Mysql and PostgreSQL*

Model Definition
----------------

[](#model-definition)

### Tables

[](#tables)

To define a table, it must have the trait class **LiliDb\\Model** and each property use the attributes **LiliDb\\\*\\Attributes\\Field** or **LiliDb\\\*\\Attributes\\Key** to map it to the table fields

```
