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

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

nextras/dbal
============

Nextras database abstraction layer

v5.0.7(6mo ago)831.8M↓45.3%33[6 issues](https://github.com/nextras/dbal/issues)[5 PRs](https://github.com/nextras/dbal/pulls)20MITPHPPHP &gt;=8.1CI passing

Since Mar 23Pushed 1mo ago15 watchersCompare

[ Source](https://github.com/nextras/dbal)[ Packagist](https://packagist.org/packages/nextras/dbal)[ Docs](https://github.com/nextras/dbal)[ GitHub Sponsors](https://github.com/hrach)[ RSS](/packages/nextras-dbal/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (15)Versions (60)Used By (20)

Nextras Dbal
============

[](#nextras-dbal)

[![Build Status](https://camo.githubusercontent.com/d52909f8c5457ca9f1a0495c8102594ae8856bf488d2c0b4d6011c1feb324c24/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6e6578747261732f6462616c2f6275696c642e796d6c3f6272616e63683d6d61696e)](https://github.com/nextras/dbal/actions?query=workflow%3ABuild+branch%3Amain)[![Downloads this Month](https://camo.githubusercontent.com/fb6c2ea2d2ba852ca2668074e5e3acf28cf4eea99aef6ccd59384c8b788d1845/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6e6578747261732f6462616c2e7376673f7374796c653d666c6174)](https://packagist.org/packages/nextras/dbal)[![Stable Version](https://camo.githubusercontent.com/82410a4ada337f79397a407dbd3f7ea5610a1e8e91a47449140961943daded3a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6578747261732f6462616c2e7376673f7374796c653d666c6174)](https://packagist.org/packages/nextras/dbal)[![Code coverage](https://camo.githubusercontent.com/49b1ad057ad23c1c310f2429e4d85372c7ecb677536150126d5dccbfd3a0db16/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6e6578747261732f6462616c2e7376673f7374796c653d666c6174)](https://coveralls.io/r/nextras/dbal)[![Packagist PHP Version Support](https://camo.githubusercontent.com/685e1e6342da23a16523fbe9948ebc9041105c66985642b08836ab8451e3f9f6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6e6578747261732f6462616c)](https://packagist.org/packages/nextras/dbal)

A powerful abstraction layer for a database. **Fast &amp; Safe**.

Supported platforms:

- **MySQL** via `mysqli` or `pdo_mysql` extension,
- **PostgreSQL** via `pgsql` or `pdo_pgsql` extension,
- **MS SQL Server** via `sqlsrv` or `pdo_sqlsrv` extension.

Integrations:

- Symfony Bundle
- Nette DI Extension
- Tracy Panel

### Docs &amp; resources

[](#docs--resources)

- [Documentation](https://nextras.org/dbal/docs)

### Installation

[](#installation)

Use composer:

```
$ composer require nextras/dbal
```

### License

[](#license)

MIT. See full [license](license.md).

###  Health Score

69

—

FairBetter than 100% of packages

Maintenance79

Regular maintenance activity

Popularity56

Moderate usage in the ecosystem

Community41

Growing community involvement

Maturity86

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 80.1% of commits — single point of failure

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 ~73 days

Recently: every ~35 days

Total

54

Last Release

191d ago

Major Versions

v1.1.1 → v2.0.0-beta12015-12-30

v2.1.x-dev → v3.0.0-rc12017-07-22

v3.0.2 → v4.0.0-rc12020-08-16

v4.0.x-dev → v5.0.x-dev2023-05-13

PHP version history (5 changes)v1.0.0-RC1PHP &gt;=5.4

v2.0.0-beta1PHP &gt;=5.5

v3.0.0-rc1PHP &gt;=7.0

v3.1.0-rc1PHP &gt;=7.1

v5.0.x-devPHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/953773db6e30161b5e76572bf909c24e8ef07d7419aeebc311e071600ea99bef?d=identicon)[hrach](/maintainers/hrach)

![](https://www.gravatar.com/avatar/6163a0eec16c2bfc9cce0c7c8801b5166cca9af81a146764676059a965044000?d=identicon)[JanTvrdik](/maintainers/JanTvrdik)

---

Top Contributors

[![hrach](https://avatars.githubusercontent.com/u/284263?v=4)](https://github.com/hrach "hrach (730 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (62 commits)")[![JanTvrdik](https://avatars.githubusercontent.com/u/175109?v=4)](https://github.com/JanTvrdik "JanTvrdik (48 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (36 commits)")[![Mikulas](https://avatars.githubusercontent.com/u/192200?v=4)](https://github.com/Mikulas "Mikulas (7 commits)")[![mrceperka](https://avatars.githubusercontent.com/u/22822651?v=4)](https://github.com/mrceperka "mrceperka (3 commits)")[![jiripudil](https://avatars.githubusercontent.com/u/1042159?v=4)](https://github.com/jiripudil "jiripudil (2 commits)")[![jakubenglicky](https://avatars.githubusercontent.com/u/13773359?v=4)](https://github.com/jakubenglicky "jakubenglicky (2 commits)")[![universe-42](https://avatars.githubusercontent.com/u/3579000?v=4)](https://github.com/universe-42 "universe-42 (2 commits)")[![jakubkulhan](https://avatars.githubusercontent.com/u/95001?v=4)](https://github.com/jakubkulhan "jakubkulhan (2 commits)")[![adaamz](https://avatars.githubusercontent.com/u/4347332?v=4)](https://github.com/adaamz "adaamz (2 commits)")[![repli2dev](https://avatars.githubusercontent.com/u/475549?v=4)](https://github.com/repli2dev "repli2dev (1 commits)")[![SiViN](https://avatars.githubusercontent.com/u/17454320?v=4)](https://github.com/SiViN "SiViN (1 commits)")[![solcik](https://avatars.githubusercontent.com/u/1543737?v=4)](https://github.com/solcik "solcik (1 commits)")[![Unlink](https://avatars.githubusercontent.com/u/9026197?v=4)](https://github.com/Unlink "Unlink (1 commits)")[![zelenomodrypes](https://avatars.githubusercontent.com/u/755065?v=4)](https://github.com/zelenomodrypes "zelenomodrypes (1 commits)")[![A-g-e-s](https://avatars.githubusercontent.com/u/20422823?v=4)](https://github.com/A-g-e-s "A-g-e-s (1 commits)")[![f3l1x](https://avatars.githubusercontent.com/u/538058?v=4)](https://github.com/f3l1x "f3l1x (1 commits)")[![HonzaMatosik](https://avatars.githubusercontent.com/u/13003350?v=4)](https://github.com/HonzaMatosik "HonzaMatosik (1 commits)")[![jakubboucek](https://avatars.githubusercontent.com/u/1657322?v=4)](https://github.com/jakubboucek "jakubboucek (1 commits)")

---

Tags

databasedbalmssqlmysqlnextrasphppostgresdatabasedbalnextras

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[doctrine/dbal

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

9.7k578.4M5.6k](/packages/doctrine-dbal)[doctrine/doctrine-bundle

Symfony DoctrineBundle

4.8k241.3M3.3k](/packages/doctrine-doctrine-bundle)[doctrine/migrations

PHP Doctrine Migrations project offer additional functionality on top of the database abstraction layer (DBAL) for versioning your database schema and easily deploying changes to it. It is a very easy to use and a powerful tool.

4.8k204.8M440](/packages/doctrine-migrations)[dibi/dibi

Dibi is Database Abstraction Library for PHP

5013.8M120](/packages/dibi-dibi)[envms/fluentpdo

FluentPDO is a quick and light PHP library for rapid query building. It features a smart join builder, which automatically creates table joins.

925511.7k13](/packages/envms-fluentpdo)[creof/doctrine2-spatial

Doctrine2 multi-platform support for spatial types and functions

2763.3M11](/packages/creof-doctrine2-spatial)

PHPackages © 2026

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