PHPackages                             comphp/dbengine - 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. comphp/dbengine

Abandoned → [comphp/database](/?search=comphp%2Fdatabase)ArchivedLibrary[Database &amp; ORM](/categories/database)

comphp/dbengine
===============

Provides unified access to database engines regardless of the underlying connectivity

v0.1.2(1y ago)210MITPHPPHP ^8.3

Since Feb 17Pushed 1y agoCompare

[ Source](https://github.com/commonphp/dbengine)[ Packagist](https://packagist.org/packages/comphp/dbengine)[ RSS](/packages/comphp-dbengine/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

CommonPHP - Database Library
============================

[](#commonphp---database-library)

CommonPHP's Database Library is a toolkit for database interaction and management in PHP applications. It offers a comprehensive set of features for connecting to databases, objectifying queries, executing them, and handling results efficiently.

Features
--------

[](#features)

- **Connection Management**: Simplifies the setup and management of database connections.
- **Query Builder**: Offers a fluent interface for constructing SQL queries including parameter management and dynamic query parts (SELECT \* FROM {0} WHERE id=@id)
- **Type Conversion**: Provides an extensible system for converting between PHP types and database types.
- **Exception Handling**: Includes detailed exceptions for precise error handling in database operations.

Components
----------

[](#components)

The library is structured into several key components, including the Connection Manager, Query Builder, and various type converters. It also defines interfaces and contracts for extendability, alongside a suite of exceptions for robust error management.

Requirements
------------

[](#requirements)

Requires PHP 8.3 or newer and is built to integrate seamlessly with other CommonPHP libraries.

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

[](#installation)

Use Composer to install:

```
composer require comphp/dbengine
```

### Basic Usage

[](#basic-usage)

Initialize the Connection Manager and use the Query Builder to create and execute database queries. Type converters can be used to handle complex data types, and exceptions are thrown for any errors encountered during database operations.

Extending the Library
---------------------

[](#extending-the-library)

Custom type converters can be implemented by adhering to the provided interfaces, enhancing the library's flexibility and adaptability to different database systems and requirements.

Documentation
-------------

[](#documentation)

For detailed examples and usage instructions, refer to the source code and PHPDoc comments within each component.

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

[](#contributing)

Contributions are welcome, following the contribution guidelines provided in the repository.

Testing
-------

[](#testing)

The library includes unit tests using PHPUnit. Instructions for running tests are provided, encouraging contributions to maintain high test coverage.

License
-------

[](#license)

Licensed under the MIT License, promoting open and permissive usage in projects.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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

Every ~85 days

Total

3

Last Release

697d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5991e71fdfcd1bc709602e9d809bded7c12649ba25084cc6f715caf45e2e52c1?d=identicon)[tlmcclatchey](/maintainers/tlmcclatchey)

---

Top Contributors

[![tlmcclatchey](https://avatars.githubusercontent.com/u/112527648?v=4)](https://github.com/tlmcclatchey "tlmcclatchey (9 commits)")

---

Tags

commonphpconnection-managementdatabaseopen-sourcepdophpquery-buildertype-conversion

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/comphp-dbengine/health.svg)

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

###  Alternatives

[symfony/dependency-injection

Allows you to standardize and centralize the way objects are constructed in your application

4.2k455.6M9.6k](/packages/symfony-dependency-injection)[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k51.2M337](/packages/api-platform-core)[getgrav/grav

Modern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS

15.6k86.4k1](/packages/getgrav-grav)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

564576.7k51](/packages/ecotone-ecotone)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)

PHPackages © 2026

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