Lightweight pseudo-ORM for PHP.

2.3.8 2015-01-09 13:47 UTC

This package is auto-updated.

Last update: 2021-11-29 02:05:32 UTC


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


  • Support multiple DB connectors
  • SQL builder with 8 types of smart placeholders for statements data binding & prepare
  • Easy to use and flexible Collections & 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, '<')->isActive(true)->orderBy('age')->get()
  • Nested sets implemented interface

Documentation & Examples

See http://php-console.com/dabase