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

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

lctrs/dbal-specification
========================

Specification pattern for DBAL repositories

0.5.0(5y ago)216[1 PRs](https://github.com/Lctrs/DBAL-Specification/pulls)MITPHPPHP ^7.3.0

Since Jan 26Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Lctrs/DBAL-Specification)[ Packagist](https://packagist.org/packages/lctrs/dbal-specification)[ Docs](https://github.com/Lctrs/DBAL-Specification)[ RSS](/packages/lctrs-dbal-specification/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (7)Dependencies (15)Versions (9)Used By (0)

DBAL Specification
==================

[](#dbal-specification)

[![Integrate](https://github.com/Lctrs/DBAL-Specification/workflows/Integrate/badge.svg?branch=master)](https://github.com/Lctrs/DBAL-Specification/actions)[![Release](https://github.com/Lctrs/DBAL-Specification/workflows/Release/badge.svg?branch=master)](https://github.com/Lctrs/DBAL-Specification/actions)[![Renew](https://github.com/Lctrs/DBAL-Specification/workflows/Renew/badge.svg?branch=master)](https://github.com/Lctrs/DBAL-Specification/actions)

[![Code Coverage](https://camo.githubusercontent.com/9449b8e8a721bdf232bac1c82c38e01eb5f0d080cde79dd1ad44d6319fc275de/68747470733a2f2f636f6465636f762e696f2f67682f4c637472732f4442414c2d53706563696669636174696f6e2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/Lctrs/DBAL-Specification)[![Type Coverage](https://camo.githubusercontent.com/a0bc9c9c0424ed3c4627dc5cb9a2e3f1cb55e729b7b6679d939a032ab85d84ea/68747470733a2f2f73686570686572642e6465762f6769746875622f4c637472732f4442414c2d53706563696669636174696f6e2f636f7665726167652e737667)](https://shepherd.dev/github/Lctrs/DBAL-Specification)

[![Latest Stable Version](https://camo.githubusercontent.com/a4b980a44cee58f3025a90f75babd67f3aad26139a048a05cbde76d7876584a5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4c637472732f4442414c2d53706563696669636174696f6e3f7374796c653d666c61742d737175617265)](https://packagist.org/packages/Lctrs/DBAL-Specification)[![Total Downloads](https://camo.githubusercontent.com/150cc650fc1dee06c3c046e0d0f47821b5027d021ffc12d838e0423ef595fea7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f4c637472732f4442414c2d53706563696669636174696f6e3f7374796c653d666c61742d737175617265)](https://packagist.org/packages/Lctrs/DBAL-Specification)

[Specification pattern](http://en.wikipedia.org/wiki/Specification_pattern) for Doctrine DBAL 2.9+ compatible with PHP 7.2+.

It's heavily inspired from [Happyr's Doctrine Specification library](https://github.com/Happyr/Doctrine-Specification).

Installation
------------

[](#installation)

Run

```
$ composer require lctrs/dbal-specification
```

Usage
-----

[](#usage)

💡 This is a great place for showing a few usage examples!

Changelog
---------

[](#changelog)

Please have a look at [`CHANGELOG.md`](CHANGELOG.md).

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

[](#contributing)

Please have a look at [`CONTRIBUTING.md`](.github/CONTRIBUTING.md).

License
-------

[](#license)

This package is licensed using the MIT License.

Please have a look at [`LICENSE.md`](LICENSE.md).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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

Recently: every ~93 days

Total

7

Last Release

1993d ago

PHP version history (4 changes)0.1.0PHP ^7.1

0.2.0PHP ^7.2

0.3.0PHP ^7.2.9

0.5.0PHP ^7.3.0

### Community

Maintainers

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

---

Top Contributors

[![Lctrs](https://avatars.githubusercontent.com/u/5477973?v=4)](https://github.com/Lctrs "Lctrs (173 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (135 commits)")[![lctrs-bot](https://avatars.githubusercontent.com/u/62859014?v=4)](https://github.com/lctrs-bot "lctrs-bot (92 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (65 commits)")

---

Tags

dbaldoctrinephpspecification

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58523.9M36](/packages/scienta-doctrine-json-functions)[martin-georgiev/postgresql-for-doctrine

Extends Doctrine with native PostgreSQL support for arrays, JSONB, ranges, PostGIS geometries, text search, ltree, uuid, and 100+ PostgreSQL-specific functions.

4485.3M4](/packages/martin-georgiev-postgresql-for-doctrine)[damienharper/auditor-bundle

Integrate auditor library in your Symfony projects.

4542.8M](/packages/damienharper-auditor-bundle)[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-bundle)[overtrue/laravel-versionable

Make Laravel model versionable.

585308.0k5](/packages/overtrue-laravel-versionable)[worksome/foggy

Foggy is a tool for making database dumps with some data removed/changed.

26571.7k1](/packages/worksome-foggy)

PHPackages © 2026

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