PHPackages                             leeqvip/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. [Framework](/categories/framework)
4. /
5. leeqvip/database

ActiveLibrary[Framework](/categories/framework)

leeqvip/database
================

PDO database library

v2.0.0(1y ago)558.1k—9.8%31Apache-2.0PHPPHP &gt;=8.0CI passing

Since Oct 16Pushed 1y ago2 watchersCompare

[ Source](https://github.com/leeqvip/database)[ Packagist](https://packagist.org/packages/leeqvip/database)[ RSS](/packages/leeqvip-database/feed)WikiDiscussions master Synced 1mo ago

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

Database library for PHP
========================

[](#database-library-for-php)

[![PHPUnit](https://github.com/leeqvip/database/actions/workflows/phpunit.yml/badge.svg)](https://github.com/leeqvip/database/actions/workflows/phpunit.yml)[![Coverage Status](https://camo.githubusercontent.com/573379a2b0012408f42688ac138292b3821d0d8dbdadde031d20ff586602b7ce/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6c6565717669702f64617461626173652f62616467652e737667)](https://coveralls.io/github/leeqvip/database)[![Latest Stable Version](https://camo.githubusercontent.com/d663c13756f528c7413492faae062b3aed26f73316d5decb42a59c06f6323b5b/68747470733a2f2f706f7365722e707567782e6f72672f6c6565717669702f64617461626173652f762f737461626c65)](https://packagist.org/packages/leeqvip/database)[![Total Downloads](https://camo.githubusercontent.com/b20abb13b2ebebe4fe99bf5bd4d460ae9bb46a07089d00da7bad5ca98724b2a9/68747470733a2f2f706f7365722e707567782e6f72672f6c6565717669702f64617461626173652f646f776e6c6f616473)](https://packagist.org/packages/leeqvip/database)[![License](https://camo.githubusercontent.com/a3c9d68c6d8d1c4900b06e9cfc5c0ccf711c3a429a32c01eb8e2b34b251718fe/68747470733a2f2f706f7365722e707567782e6f72672f6c6565717669702f64617461626173652f6c6963656e7365)](https://packagist.org/packages/leeqvip/database)

PDO database library for PHP.

the current supported databases are:

typedatabasemysqlMySQLpgsqlPostgreSQLsqliteSQLitesqlsrvSqlServer### Installation

[](#installation)

Use [Composer](https://getcomposer.org/)

```
composer require leeqvip/database

```

### Usage

[](#usage)

```
require_once './vendor/autoload.php';

use Leeqvip\Database\Manager;

$config = [
    'type'     => 'mysql', // mysql,pgsql,sqlite,sqlsrv
    'hostname' => '127.0.0.1',
    'database' => 'test',
    'username' => 'root',
    'password' => 'abc-123',
    'hostport' => '3306',
];

$manager = new Manager($config);
$connection = $manager->getConnection();

$connection->query('SELECT * FROM `users` WHERE `id` = :id', ['id' => 1]);

$connection->execute('UPDATE `users` SET `name` = "joker" where `id` = :id', ['id' => 1]);
```

### License

[](#license)

This project is licensed under the [Apache 2.0 license](LICENSE).

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance50

Moderate activity, may be stable

Popularity36

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity70

Established project with proven stability

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

Total

4

Last Release

366d ago

Major Versions

v0.2 → v1.0.02022-10-23

v1.0.0 → v2.0.02025-05-17

PHP version history (2 changes)v0.1PHP &gt;=5.4.0

v2.0.0PHP &gt;=8.0

### Community

Maintainers

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

---

Top Contributors

[![leeqvip](https://avatars.githubusercontent.com/u/35752209?v=4)](https://github.com/leeqvip "leeqvip (10 commits)")

---

Tags

database-libraryormpdopdo-database-librarypdo-mysqlpdo-pgsqlpdo-phpphpframeworkdatabaseormpdo

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/leeqvip-database/health.svg)

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

PHPackages © 2026

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