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

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

grizz-it/dbal
=============

Database abstraction layer

1.0.0(5y ago)11144MITPHPPHP ^8.0

Since Apr 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/grizz-it/dbal)[ Packagist](https://packagist.org/packages/grizz-it/dbal)[ RSS](/packages/grizz-it-dbal/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (4)

[![Build Status](https://camo.githubusercontent.com/47ea584ef6ab0be57f6192bfd9621ee2f875053dfca0726ce1588fcc9be78268/68747470733a2f2f7472617669732d63692e636f6d2f6772697a7a2d69742f6462616c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/grizz-it/dbal)

GrizzIT DBAL
============

[](#grizzit-dbal)

GrizzIT DBAL contains the interfaces required for a database integration. It contains the minimal interfaces required for a connection and queries. The implementations of packages are separated by connection packages and query packages.

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

[](#installation)

To install the package run the following command:

```
composer require grizz-it/dbal

```

Usage
-----

[](#usage)

### GrizzIt\\Dbal\\Common\\ConnectionInterface

[](#grizzitdbalcommonconnectioninterface)

The `ConnectionInterface` can be used to create an implementation to establish a connection with a database.

### GrizzIt\\Dbal\\Common\\FilterableQueryInterface

[](#grizzitdbalcommonfilterablequeryinterface)

The `FilterableQueryInterface` is a partial interface. It tags a query that it is filterable (for example in SQL a `WHERE` statement) and adds the abstract function. It accepts the addition of multiple `QueryFilterGroupInterface` and should join them on an `AND` basis.

### GrizzIt\\Dbal\\Common\\JoinableQueryInterface

[](#grizzitdbalcommonjoinablequeryinterface)

The `JoinableQueryInterface` is a partial interface. It tags a query that it allows join operations and adds the abstract functions.

### GrizzIt\\Dbal\\Common\\PageableQueryInterface

[](#grizzitdbalcommonpageablequeryinterface)

The `PageableQueryInterface` is a partial interface. It tags a query that it allows the use of limiters and paging and adds the abstract functions.

### GrizzIt\\Dbal\\Common\\ParameterizedQueryComponentInterface

[](#grizzitdbalcommonparameterizedquerycomponentinterface)

The `ParameterizedQueryComponentInterface` is a partial interface. It tags a query that it allows the use of prepared statements and adds the abstract function.

### GrizzIt\\Dbal\\Common\\QueryFilterGroupInterface

[](#grizzitdbalcommonqueryfiltergroupinterface)

The `QueryFilterGroupInterface` is a filter grouping interface. It accepts multiple `QueryFilterInterface` and should join them on an `OR` basis.

### GrizzIt\\Dbal\\Common\\QueryFilterInterface

[](#grizzitdbalcommonqueryfilterinterface)

The `QueryFilterInterface` is the interface that contains the individual filter.

### GrizzIt\\Dbal\\Common\\QueryInterface

[](#grizzitdbalcommonqueryinterface)

The `QueryInterface` is the interface that adds the abstract function required to export a query from the object.

### GrizzIt\\Dbal\\Common\\QueryResultInterface

[](#grizzitdbalcommonqueryresultinterface)

The `QueryResultInterface` is the interface that should be the result of an executed query.

### GrizzIt\\Dbal\\Common\\SortableQueryInterface

[](#grizzitdbalcommonsortablequeryinterface)

The `SortableQueryInterface` is a partial interface. It tags a query that is allows the use of sorting and adds the abstract function.

### GrizzIt\\Dbal\\Common\\Enum\\JoinTypeEnum

[](#grizzitdbalcommonenumjointypeenum)

The `JoinTypeEnum` is an enum object that defines the different join types.

### GrizzIt\\Dbal\\Common\\Enum\\SortDirectionEnum

[](#grizzitdbalcommonenumsortdirectionenum)

The `SortDirectionEnum` is an enum object that defined the different sorting directions.

Official implementations
------------------------

[](#official-implementations)

The following implementations are currently available:

### Connection packages

[](#connection-packages)

- [PDO](https://github.com/grizz-it/dbal-pdo)

### Query packages

[](#query-packages)

- [SQL](https://github.com/grizz-it/dbal-sql)

### Query packages

[](#query-packages-1)

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

MIT License
-----------

[](#mit-license)

Copyright (c) GrizzIT

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1862d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6463856a0e35d69706d07c4e44fd1c9e67e27c34efeeef5334b238b1b3410e9c?d=identicon)[GrizzIT](/maintainers/GrizzIT)

---

Top Contributors

[![mfrankruijter](https://avatars.githubusercontent.com/u/8653925?v=4)](https://github.com/mfrankruijter "mfrankruijter (1 commits)")

---

Tags

databasesdbalmysqlphpdbal

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/grizz-it-dbal/health.svg)](https://phpackages.com/packages/grizz-it-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.8M438](/packages/doctrine-migrations)[doctrine/doctrine-migrations-bundle

Symfony DoctrineMigrationsBundle

4.3k177.9M533](/packages/doctrine-doctrine-migrations-bundle)[fresh/doctrine-enum-bundle

Provides support of ENUM type for Doctrine2 in Symfony applications.

4636.8M12](/packages/fresh-doctrine-enum-bundle)[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)

PHPackages © 2026

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