orm README

The project's README from github.com/doctrine/orm. As one markdown file: README.md.

4.0.x 3.8.x 3.7.x 2.21.x 2.20.x
Build status Build status Build status Build status Build status
Coverage Status Coverage Status Coverage Status Coverage Status Coverage Status

Doctrine ORM is an object-relational mapper for PHP 8.1+ that provides transparent persistence for PHP objects. It sits on top of a powerful database abstraction layer (DBAL). 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 Hibernate's HQL. This provides developers with a powerful alternative to SQL that maintains flexibility without requiring unnecessary code duplication.

More resources:

orm (doctrine/orm)

Searching Database…

10.2K ·GitHub
What is this?Doctrine ORM is an object-relational mapper for PHP 8.1+ that provides transparent persistence for PHP objects, letting you work with database data as regular PHP objects.
Is it a standalone database or a layer on top of my existing database?It's a library layer that sits on top of a database abstraction layer (DBAL) and translates between PHP objects and SQL tables; it doesn't replace your actual database.
How do I add it to a project?Install it via Composer as a dependency, like any PHP library; the README points to the full documentation for configuration and entity mapping.
What PHP version do I need?You need PHP 8.1 or newer.
Do I have to write raw SQL to query data?No — Doctrine provides its own object-oriented query language called DQL (inspired by Hibernate's HQL) as an alternative to writing SQL directly, though SQL is still used under the hood.
What is DQL?Doctrine Query Language is an object-oriented query dialect, similar to Hibernate's HQL, that lets you query your entities instead of writing raw SQL.
Why doesn't it just use plain SQL?The goal is to give developers the flexibility of SQL-style querying while avoiding repetitive boilerplate code tied to manual query writing.
Are older versions still maintained?The README tracks build status for multiple active branches (4.0.x, 3.8.x, 3.7.x, 2.21.x, 2.20.x), showing several version lines are maintained in parallel.
Where can I find full setup and usage instructions?The README links out to the official Doctrine website and documentation for detailed configuration and usage guides.
What are similar projects?typeorm, efcore, sequelize, diesel, peewee, ent, migrate, drizzle-orm
Creator
doctrine
Size
54.7 MB
Stars
10.2K
Age
16y
Commits · 90 Days