doctrine

Tool for object-relational mapping in PHP

The Doctrine library sits on top of PDO and is itself divided into two
main layers, the DBAL (which represents a complete database abstraction
API) and the ORM (the bridge between the relational model and the object
model / domain model).

One of its key features is the option to write database queries in a
proprietary object oriented SQL dialect called Doctrine Query Language
(DQL), inspired by Hibernates HQL. This provides developers with a
powerful alternative to SQL that maintains flexibility without requiring
unnecessary code duplication.