PHPackages                             dabase/dabase - 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. dabase/dabase

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

dabase/dabase
=============

Lightweight pseudo-ORM for PHP.

2.3.8(11y ago)963LGPLPHPPHP &gt;=5.3.0

Since Jan 5Pushed 11y ago1 watchersCompare

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

READMEChangelog (3)DependenciesVersions (6)Used By (0)

DaBase is a very flexible, simple and lightweight pseudo ORM for PHP.

Features
--------

[](#features)

- Support multiple DB connectors
    - PDO
    - MySQLnd
    - MySQLi
    - PgSql
- SQL builder with 8 types of smart placeholders for statements data binding &amp; prepare
- Easy to use and flexible Collections &amp; Models class map
- Flexible router for mapping `$db->someTable->get()` to collection class and table name
- No need to specify DB schema and relations, just follow Router naming convention
- Many to many, one to many, one to one relations support with smart appending interface
- Model with built in validator and 12 pre-defined validation rules
- Result cacher with auto clear mode
- Minimalistic collections filters `$db->users->age(27, '
