PHPackages                             nopoco/laminas-db - 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. nopoco/laminas-db

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

nopoco/laminas-db
=================

Database abstraction layer, SQL abstraction, result set abstraction, and RowDataGateway and TableDataGateway implementations

v2.17.0(3y ago)08BSD-3-ClausePHPPHP ~8.0.0 || ~8.1.0|| ~8.2.0

Since May 2Pushed 3y ago1 watchersCompare

[ Source](https://github.com/nopoco/laminas-db)[ Packagist](https://packagist.org/packages/nopoco/laminas-db)[ Docs](https://laminas.dev)[ RSS](/packages/nopoco-laminas-db/feed)WikiDiscussions 2.17.x Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

laminas-db
==========

[](#laminas-db)

> Removed political appeal incompatible with free software here. The original repository is at this [link](https://github.com/laminas/laminas-db).

`Laminas\Db` is a component that abstract the access to a Database using an object oriented API to build the queries. `Laminas\Db` consumes different storage adapters to access different database vendors such as MySQL, PostgreSQL, Oracle, IBM DB2, Microsoft Sql Server, PDO, etc.

Contributing
------------

[](#contributing)

Please be sure to read the [contributor's guide](https://github.com/laminas/.github/blob/main/CONTRIBUTING.md) for general information on contributing. This section outlines specifics for laminas-db.

### Test suites

[](#test-suites)

The `phpunit.xml.dist` file defines two test suites, "unit test" and "integration test". You can run one or the other using the `--testsuite` option to `phpunit`:

```
$ ./vendor/bin/phpunit --testsuite "unit test" # unit tests only
$ ./vendor/bin/phpunit --testsuite "integration test" # integration tests only
```

Unit tests do not require additional functionality beyond having the appropriate database extensions present and loaded in your PHP binary.

### Integration tests

[](#integration-tests)

To run the integration tests, you need databases. The repository includes a `Vagrantfile` which allows you to fire up a [vagrant box](https://app.vagrantup.com) with several of our target databases, including:

- MySQL
- PostgreSQL
- SQL Server

To start up vagrant:

```
$ vagrant up
```

Copy `phpunit.xml.dist` to `phpunit.xml`, and change the following ENV var declaration values to "true":

- TESTS\_LAMINAS\_DB\_ADAPTER\_DRIVER\_MYSQL
- TESTS\_LAMINAS\_DB\_ADAPTER\_DRIVER\_SQLSRV
- TESTS\_LAMINAS\_DB\_ADAPTER\_DRIVER\_PGSQL
- TESTS\_LAMINAS\_DB\_ADAPTER\_DRIVER\_SQLITE\_MEMORY

From there, you can run the integration tests:

```
$ ./vendor/bin/phpunit --testsuite "integration test"
```

---

- File issues at
- Documentation is at

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 63.9% 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 ~0 days

Total

2

Last Release

1103d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ff59b1e9f94181aafed755b3d27fa4fdcff228057a52b7dfc57672f4a23d6c85?d=identicon)[nopoco](/maintainers/nopoco)

---

Top Contributors

[![weierophinney](https://avatars.githubusercontent.com/u/25943?v=4)](https://github.com/weierophinney "weierophinney (4941 commits)")[![Maks3w](https://avatars.githubusercontent.com/u/1301698?v=4)](https://github.com/Maks3w "Maks3w (649 commits)")[![Ocramius](https://avatars.githubusercontent.com/u/154256?v=4)](https://github.com/Ocramius "Ocramius (565 commits)")[![ezimuel](https://avatars.githubusercontent.com/u/475967?v=4)](https://github.com/ezimuel "ezimuel (321 commits)")[![michalbundyra](https://avatars.githubusercontent.com/u/7423207?v=4)](https://github.com/michalbundyra "michalbundyra (193 commits)")[![EvanDotPro](https://avatars.githubusercontent.com/u/5607?v=4)](https://github.com/EvanDotPro "EvanDotPro (179 commits)")[![akrabat](https://avatars.githubusercontent.com/u/33135?v=4)](https://github.com/akrabat "akrabat (153 commits)")[![mwillbanks](https://avatars.githubusercontent.com/u/38209?v=4)](https://github.com/mwillbanks "mwillbanks (106 commits)")[![samsonasik](https://avatars.githubusercontent.com/u/459648?v=4)](https://github.com/samsonasik "samsonasik (102 commits)")[![ralphschindler](https://avatars.githubusercontent.com/u/76674?v=4)](https://github.com/ralphschindler "ralphschindler (66 commits)")[![marc-mabe](https://avatars.githubusercontent.com/u/302689?v=4)](https://github.com/marc-mabe "marc-mabe (45 commits)")[![turrsis](https://avatars.githubusercontent.com/u/2911165?v=4)](https://github.com/turrsis "turrsis (43 commits)")[![leftbrained](https://avatars.githubusercontent.com/u/1720071?v=4)](https://github.com/leftbrained "leftbrained (40 commits)")[![romulobusatto](https://avatars.githubusercontent.com/u/2951677?v=4)](https://github.com/romulobusatto "romulobusatto (39 commits)")[![kabel](https://avatars.githubusercontent.com/u/675956?v=4)](https://github.com/kabel "kabel (35 commits)")[![sgehrig](https://avatars.githubusercontent.com/u/43394?v=4)](https://github.com/sgehrig "sgehrig (33 commits)")[![DASPRiD](https://avatars.githubusercontent.com/u/233300?v=4)](https://github.com/DASPRiD "DASPRiD (29 commits)")[![Freeaqingme](https://avatars.githubusercontent.com/u/33034?v=4)](https://github.com/Freeaqingme "Freeaqingme (24 commits)")[![ghostwriter](https://avatars.githubusercontent.com/u/9754361?v=4)](https://github.com/ghostwriter "ghostwriter (20 commits)")[![tptrixtop](https://avatars.githubusercontent.com/u/1807828?v=4)](https://github.com/tptrixtop "tptrixtop (18 commits)")

---

Tags

laminasdb

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nopoco-laminas-db/health.svg)

```
[![Health](https://phpackages.com/badges/nopoco-laminas-db/health.svg)](https://phpackages.com/packages/nopoco-laminas-db)
```

###  Alternatives

[laminas/laminas-db

Database abstraction layer, SQL abstraction, result set abstraction, and RowDataGateway and TableDataGateway implementations

13922.5M206](/packages/laminas-laminas-db)[doctrine/doctrine-orm-module

Laminas Module that provides Doctrine ORM functionality

4407.3M292](/packages/doctrine-doctrine-orm-module)[doctrine/doctrine-module

Laminas Module that provides Doctrine basic functionality required for ORM and ODM modules

3957.9M114](/packages/doctrine-doctrine-module)[doctrine/doctrine-mongo-odm-module

Laminas Module which provides Doctrine MongoDB ODM functionality

86676.6k35](/packages/doctrine-doctrine-mongo-odm-module)[doctrine/doctrine-laminas-hydrator

Doctrine hydrators for Laminas applications

362.8M17](/packages/doctrine-doctrine-laminas-hydrator)[samsonasik/error-hero-module

A Hero for your Laminas and Mezzio application to trap php errors &amp; exceptions

5233.4k1](/packages/samsonasik-error-hero-module)

PHPackages © 2026

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