# doctrine/DoctrineBundle

Symfony Bundle for Doctrine ORM and DBAL

Repository: https://github.com/doctrine/DoctrineBundle
Canonical: https://ross.abutalabs.com/products/doctrinebundle
Homepage: https://www.doctrine-project.org/projects/doctrine-bundle.html
Language: PHP
License: MIT
License Family: permissive
Topics: symfony, doctrine, bundle, symfony-bundle
Last push: 2026-08-17T22:00:05+00:00

## Health v2 (maintenance only)
Score: 97/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 94, longevity 100
- inputs: {"age_days": 5403, "days_push": 16, "days_rel": 41, "gap_med": 1, "n_releases_24m": 32}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4831, forks 482 (observed 2026-08-28T04:09:00.615180+00:00)

## What it is
DoctrineBundle is the official Symfony bundle that integrates Doctrine ORM and DBAL into Symfony applications. It provides configuration, console commands, entity manager wiring, and a web debug toolbar collector for database persistence.

## Use cases
- integrate Doctrine ORM into a Symfony app
- configure multiple database connections and entity managers in Symfony
- run Doctrine schema and migration console commands in Symfony
- inspect Doctrine queries in the Symfony profiler toolbar
- manage entity listeners and event listeners in Symfony
- set up DBAL types and custom ID generators

## When to choose
- you are building a Symfony application that needs database persistence
- you want Doctrine ORM/DBAL wired into Symfony's DI container and profiler
- you need multiple entity managers or connections with autowiring

## When to avoid
- you use Laravel, Laminas, or a non-Symfony framework
- you want a standalone ORM without framework integration
- you prefer a lightweight query builder without full ORM

## Facets
- artifact type: plugin
- maturity: stable
- function: orm, database, database-driver, cli, middleware
- domain: databases, web-development, backend, developer-tools
- platform: php, self-hosted
- tags: symfony-bundle, doctrine-orm, dbal, entity-management, console-commands, web-profiler, web-server

## Member repositories
- doctrine/DoctrineBundle (main) score 97

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:00.615180+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:18:29.996676+00:00, confidence not recorded.
  - readme: https://github.com/doctrine/DoctrineBundle (fetched 2026-08-28T04:09:00.615180+00:00, sha 7340aa1f9d0f)
  - homepage: https://www.doctrine-project.org/projects/doctrine-bundle.html (fetched 2026-08-29T09:01:23.979641+00:00, sha 5167f0c062d5)
  - site_page: https://www.doctrine-project.org/projects/doctrine-bundle/en/3.3/index.html (fetched 2026-08-29T09:01:23.982676+00:00, sha cc9ab538ce0f)
  - site_page: https://www.doctrine-project.org/projects/doctrine-bundle/en/latest/index.html (fetched 2026-08-29T09:01:23.984774+00:00, sha a8a402112664)
  - site_page: https://www.doctrine-project.org/projects/doctrine-bundle/en/3.4/index.html (fetched 2026-08-29T09:01:23.997216+00:00, sha 7f65b5b5eb3e)
  - site_page: https://www.doctrine-project.org/projects/doctrine-bundle/en/3.2/index.html (fetched 2026-08-29T09:01:24.003497+00:00, sha adea5fc83be8)
  - site_page: https://www.doctrine-project.org/projects/doctrine-bundle/en/3.1/index.html (fetched 2026-08-29T09:01:24.005330+00:00, sha aff420dd5bae)
  - site_page: https://www.doctrine-project.org/projects/doctrine-bundle/en/3.0/index.html (fetched 2026-08-29T09:01:24.006978+00:00, sha af30ed3a3f00)
  - site_page: https://www.doctrine-project.org/projects/doctrine-bundle/en/2.19/index.html (fetched 2026-08-29T09:01:24.008525+00:00, sha fccf0ed14f69)
  - site_page: https://www.doctrine-project.org/projects/doctrine-bundle/en/2.18/index.html (fetched 2026-08-29T09:01:24.010185+00:00, sha 41cc789b25c8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
