PHPackages                             qwant50/dbconnect - 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. qwant50/dbconnect

ActiveLibrary[Framework](/categories/framework)

qwant50/dbconnect
=================

Jazz framework DbConnect component

1.0.0(10y ago)117MITPHP

Since Jun 13Pushed 8y ago1 watchersCompare

[ Source](https://github.com/qwant50/DbConnect)[ Packagist](https://packagist.org/packages/qwant50/dbconnect)[ RSS](/packages/qwant50-dbconnect/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

Jazz framework DbConnect component README
=========================================

[](#jazz-framework-dbconnect-component-readme)

**Most popular framework DbConnect component**

Override
--------

[](#override)

This is a factory PDO based class. Can store multiple instances of connections. Simple and useful.

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

[](#installation)

The preferred way to install this Jazz framework DbConnect component is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require "qwant50/dbconnect"
```

or add

```
"qwant50/dbconnect": "~1.*.*"
```

to the require section of your composer.json.

\##Usage

#### Get instance

[](#get-instance)

```
$db = DbConnect::getInstance(['connectionName' => 'db1',
                              'host' => '127.0.0.1',
                              'dbname' => 'test',
                              'username' => 'webuser',
                              'password' => 'xxxxxxxx',]);
```

#### Get connection

[](#get-connection)

```
$db = DbConnect::getInstance(['connectionName' => 'db1',
                              'host' => '127.0.0.1',
                              'dbname' => 'test',
                              'username' => 'webuser',
                              'password' => 'xxxxxxxx',])->getConnection();
```

#### Example to usage

[](#example-to-usage)

```
$db = DbConnect::getInstance(['connectionName' => 'db1',
                              'host' => '127.0.0.1',
                              'dbname' => 'test',
                              'username' => 'webuser',
                              'password' => 'xxxxxxxx',])->getConnection();
$stmt = $db->prepare("SELECT * FROM table_name WHERE login = :login");
$stmt->bindParam(':login', $login);
$stmt->execute();
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3669d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14050982?v=4)[Serhii Malakhov](/maintainers/qwant50)[@qwant50](https://github.com/qwant50)

---

Top Contributors

[![qwant50](https://avatars.githubusercontent.com/u/14050982?v=4)](https://github.com/qwant50 "qwant50 (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/qwant50-dbconnect/health.svg)

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

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k104.3M836](/packages/laravel-socialite)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k38.6M289](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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