# Doctrine DBAL

> Doctrine Database Abstraction Layer

Source: https://talira.ai/catalog/doctrine-dbal-xjvxyczq
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / databases / sql toolkits](https://talira.ai/categories/libraries/databases/sql-toolkits), [languages / php](https://talira.ai/categories/languages/php)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Doctrine Project](https://talira.ai/orgs/doctrine-project.md)

Doctrine DBAL is a PHP database abstraction layer with many features for database schema introspection and management. It gives one API over drivers for MySQL, MariaDB, PostgreSQL, Oracle, Microsoft SQL Server, Db2 and SQLite: prepared statements and parameter binding, a SQL query builder, transactions, a type system that converts between database and PHP values, and a schema manager that reads and changes tables. [Doctrine ORM](https://talira.ai/catalog/doctrine-orm-vn7a6r26.md) is built on it, and it's also used on its own.

## Links

- Website: https://www.doctrine-project.org/projects/dbal.html
- GitHub: https://github.com/doctrine/dbal
- Docs: https://www.doctrine-project.org/projects/doctrine-dbal/en/4.6/reference/introduction.html

## Problems it solves

- run SQL from PHP against MySQL, Postgres or SQLite without being tied to one database
- build SQL queries safely in PHP without a full ORM
- read and change my database schema from PHP code

## Features

- one API over MySQL, MariaDB, PostgreSQL, Oracle, SQL Server, Db2 and SQLite
- prepared statements and parameter binding
- SQL query builder
- schema introspection and management
- type conversion between database and PHP values
- transactions with nesting

## Trust

Overall: 0.71 out of 1.
Signals: maintenance 1.00, adoption 0.80, momentum 0.51, community 1.00, backing 0.30, extensibility 0.00.

- last commit 5 days ago
- 113 commits in the last 90 days
- latest release 4.6.0 15 days ago
- 9.7k GitHub stars
- 662 contributors
- accepts sponsorship (Patreon, Tidelift, Custom)
- backed by Doctrine Project

## Sources

[^1]: https://github.com/doctrine/dbal/blob/4.6.x/LICENSE (checked 26 Nov 2026)
