PHPackages                             doctrine/dbal - 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. doctrine/dbal

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

doctrine/dbal
=============

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

4.4.3(2mo ago)9.7k578.4M—3.1%1.4k[280 issues](https://github.com/doctrine/dbal/issues)[12 PRs](https://github.com/doctrine/dbal/pulls)20MITPHPPHP ^8.2CI passing

Since Nov 21Pushed 3d ago106 watchersCompare

[ Source](https://github.com/doctrine/dbal)[ Packagist](https://packagist.org/packages/doctrine/dbal)[ Docs](https://www.doctrine-project.org/projects/dbal.html)[ Fund](https://www.doctrine-project.org/sponsorship.html)[ Patreon](https://www.patreon.com/phpdoctrine)[ RSS](/packages/doctrine-dbal/feed)WikiDiscussions 4.4.x Synced 1mo ago

READMEChangelog (10)Dependencies (28)Versions (181)Used By (20)Security (2)

Doctrine DBAL
=============

[](#doctrine-dbal)

[5.0-dev](https://github.com/doctrine/dbal/tree/5.0.x)[4.5-dev](https://github.com/doctrine/dbal/tree/4.5.x)[4.4](https://github.com/doctrine/dbal/tree/4.4.x)[3.10](https://github.com/doctrine/dbal/tree/3.10.x)[![GitHub Actions](https://github.com/doctrine/dbal/actions/workflows/continuous-integration.yml/badge.svg?branch=5.0.x)](https://github.com/doctrine/dbal/actions?query=workflow%3A%22Continuous+Integration%22+branch%3A5.0.x)[![GitHub Actions](https://github.com/doctrine/dbal/actions/workflows/continuous-integration.yml/badge.svg?branch=4.5.x)](https://github.com/doctrine/dbal/actions?query=workflow%3A%22Continuous+Integration%22+branch%3A4.5.x)[![GitHub Actions](https://github.com/doctrine/dbal/actions/workflows/continuous-integration.yml/badge.svg?branch=4.4.x)](https://github.com/doctrine/dbal/actions?query=workflow%3A%22Continuous+Integration%22+branch%3A4.4.x)[![GitHub Actions](https://github.com/doctrine/dbal/actions/workflows/continuous-integration.yml/badge.svg?branch=3.10.x)](https://github.com/doctrine/dbal/actions?query=workflow%3A%22Continuous+Integration%22+branch%3A3.10.x)[![Code Coverage](https://camo.githubusercontent.com/d136188e15c83d165d3134626ab753a19569ca941713e2ae714b87b925a8e2b6/68747470733a2f2f636f6465636f762e696f2f67682f646f637472696e652f6462616c2f6272616e63682f352e302e782f67726170682f62616467652e737667)](https://codecov.io/gh/doctrine/dbal/branch/5.0.x)[![Code Coverage](https://camo.githubusercontent.com/99239c4c1626b2942133ede14d582984de1b7be45255e175b8714bf597602133/68747470733a2f2f636f6465636f762e696f2f67682f646f637472696e652f6462616c2f6272616e63682f342e352e782f67726170682f62616467652e737667)](https://codecov.io/gh/doctrine/dbal/branch/4.5.x)[![Code Coverage](https://camo.githubusercontent.com/1d84045fa40039d1bb17e7a57d0a62c0ea4f73f0b3d21ec8c745aa562947955f/68747470733a2f2f636f6465636f762e696f2f67682f646f637472696e652f6462616c2f6272616e63682f342e342e782f67726170682f62616467652e737667)](https://codecov.io/gh/doctrine/dbal/branch/4.4.x)[![Code Coverage](https://camo.githubusercontent.com/43d886784d659fbfe6018a01f0d402e713f90198ad7cc19292b56211eda89213/68747470733a2f2f636f6465636f762e696f2f67682f646f637472696e652f6462616c2f6272616e63682f332e31302e782f67726170682f62616467652e737667)](https://codecov.io/gh/doctrine/dbal/branch/3.10.x)Powerful ***D***ata***B***ase ***A***bstraction ***L***ayer with many features for database schema introspection and schema management.

More resources:
---------------

[](#more-resources)

- [Website](http://www.doctrine-project.org/projects/dbal.html)
- [Documentation](http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/)
- [Issue Tracker](https://github.com/doctrine/dbal/issues)

###  Health Score

90

—

ExcellentBetter than 100% of packages

Maintenance94

Actively maintained with recent releases

Popularity90

Widely adopted with strong download metrics

Community70

Healthy contributor diversity

Maturity95

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~29 days

Recently: every ~2 days

Total

180

Last Release

53d ago

Major Versions

3.10.3 → 4.3.42025-10-09

3.10.4 → 4.3.52025-11-29

3.10.5 → 4.4.22026-02-26

3.10.x-dev → 4.5.x-dev2026-03-19

4.5.x-dev → 5.0.x-dev2026-03-19

PHP version history (11 changes)2.1.5PHP &gt;=5.3.2

v2.6.0PHP ^7.1

v2.10.0PHP ^7.2

2.11.0PHP ^7.3

2.12.0PHP ^7.3 || ^8

3.0.0PHP ^7.3 || ^8.0

2.13.0PHP ^7.1 || ^8

3.4.0PHP ^7.4 || ^8.0

4.0.0-beta1PHP ^8.1

4.3.0PHP ^8.2

5.0.x-devPHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/892698bb1d3f6dae0e3a44abe3e26920ddb4eb000c6c583c87b4db5e5027e166?d=identicon)[beberlei](/maintainers/beberlei)

![](https://www.gravatar.com/avatar/0d593ca4b147d5711e6894f711f806adca6875fc7a7d3300f927cd0ceafb2a59?d=identicon)[morozov](/maintainers/morozov)

---

Top Contributors

[![morozov](https://avatars.githubusercontent.com/u/59683?v=4)](https://github.com/morozov "morozov (2757 commits)")[![beberlei](https://avatars.githubusercontent.com/u/26936?v=4)](https://github.com/beberlei "beberlei (919 commits)")[![derrabus](https://avatars.githubusercontent.com/u/1506493?v=4)](https://github.com/derrabus "derrabus (873 commits)")[![greg0ire](https://avatars.githubusercontent.com/u/657779?v=4)](https://github.com/greg0ire "greg0ire (675 commits)")[![deeky666](https://avatars.githubusercontent.com/u/1411514?v=4)](https://github.com/deeky666 "deeky666 (543 commits)")[![Ocramius](https://avatars.githubusercontent.com/u/154256?v=4)](https://github.com/Ocramius "Ocramius (470 commits)")[![guilhermeblanco](https://avatars.githubusercontent.com/u/208883?v=4)](https://github.com/guilhermeblanco "guilhermeblanco (138 commits)")[![Majkl578](https://avatars.githubusercontent.com/u/144181?v=4)](https://github.com/Majkl578 "Majkl578 (114 commits)")[![jwage](https://avatars.githubusercontent.com/u/97422?v=4)](https://github.com/jwage "jwage (104 commits)")[![BenMorel](https://avatars.githubusercontent.com/u/1952838?v=4)](https://github.com/BenMorel "BenMorel (74 commits)")[![lcobucci](https://avatars.githubusercontent.com/u/201963?v=4)](https://github.com/lcobucci "lcobucci (58 commits)")[![kimhemsoe](https://avatars.githubusercontent.com/u/568787?v=4)](https://github.com/kimhemsoe "kimhemsoe (57 commits)")[![JeroenDeDauw](https://avatars.githubusercontent.com/u/146040?v=4)](https://github.com/JeroenDeDauw "JeroenDeDauw (50 commits)")[![romanb](https://avatars.githubusercontent.com/u/177309?v=4)](https://github.com/romanb "romanb (48 commits)")[![juokaz](https://avatars.githubusercontent.com/u/157597?v=4)](https://github.com/juokaz "juokaz (44 commits)")[![belgattitude](https://avatars.githubusercontent.com/u/259798?v=4)](https://github.com/belgattitude "belgattitude (42 commits)")[![SenseException](https://avatars.githubusercontent.com/u/859964?v=4)](https://github.com/SenseException "SenseException (41 commits)")[![jsor](https://avatars.githubusercontent.com/u/55574?v=4)](https://github.com/jsor "jsor (32 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (31 commits)")[![phansys](https://avatars.githubusercontent.com/u/1231441?v=4)](https://github.com/phansys "phansys (30 commits)")

---

Tags

databaseibm-db2mariadbmysqloraclepostgresqlsql-serversqliteabstractiondatabasemysqlsqlitepostgresqlmariadbdbalqueryobjectsqlpdopgsqlsqlservermssqloraclesqlsrvoci8db2sasql

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/doctrine-dbal/health.svg)

```
[![Health](https://phpackages.com/badges/doctrine-dbal/health.svg)](https://phpackages.com/packages/doctrine-dbal)
```

###  Alternatives

[ezsql/ezsql

Advance database access library. Make interacting with a database ridiculously easy. An universal interchangeable CRUD system.

86946.7k](/packages/ezsql-ezsql)[dibi/dibi

Dibi is Database Abstraction Library for PHP

5013.8M120](/packages/dibi-dibi)[jv2222/ezsql

Advance database access library. Make interacting with a database ridiculously easy. An universal interchangeable CRUD system.

87311.3k2](/packages/jv2222-ezsql)[ramadan/easy-model

A Laravel package for enjoyably managing database queries.

101.6k](/packages/ramadan-easy-model)[tommyknocker/pdo-database-class

Framework-agnostic PHP database library with unified API for MySQL, MariaDB, PostgreSQL, SQLite, MSSQL, and Oracle. Query Builder, caching, sharding, window functions, CTEs, JSON, migrations, ActiveRecord, CLI tools, AI-powered analysis. Zero external dependencies.

845.7k](/packages/tommyknocker-pdo-database-class)[aura/sqlschema

Provides facilities to read table names and table columns from a database using PDO.

41234.1k4](/packages/aura-sqlschema)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
