PHPackages                             comphp/database - 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/database

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

comphp/database
===============

Driver-based database connection and query support for PHP applications.

0.3(1mo ago)031MITPHPPHP ^8.5

Since Mar 17Pushed 1mo agoCompare

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

READMEChangelog (2)Dependencies (9)Versions (3)Used By (1)

CommonPHP Database
==================

[](#commonphp-database)

CommonPHP Database provides driver-based database connection and query support for CommonPHP applications. It defines database managers, connection handling, result behavior, and the contracts needed for database-specific drivers such as MySQL or Microsoft SQL Server.

The package is intended to support named connections and lazy driver creation so applications can define multiple database connections without opening them until needed.

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

[](#requirements)

- PHP `^8.5`
- `comphp/runtime:^0.3`

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

[](#installation)

Once this package is available through your Composer repositories, install it with:

```
composer require comphp/database
```

Usage
-----

[](#usage)

```
