PHPackages                             thephpeffect/connection-manager - 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. thephpeffect/connection-manager

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

thephpeffect/connection-manager
===============================

A simple connection manager for any OOP db connection in PHP

v1.0(10y ago)112MITPHPPHP &gt;=5.4

Since Sep 23Pushed 10y ago1 watchersCompare

[ Source](https://github.com/ArchitectNate/ConnectionManager)[ Packagist](https://packagist.org/packages/thephpeffect/connection-manager)[ Docs](https://github.com/thephpeffect/ConnectionManager)[ RSS](/packages/thephpeffect-connection-manager/feed)WikiDiscussions master Synced 1mo ago

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

ConnectionManager
=================

[](#connectionmanager)

A PHP singleton designed to keep track of multiple database connections.

Installation
============

[](#installation)

The recommended way to install ConnectionManager is through composer(). Type the following command in your shell environment:

php ~/composer.phar require thephpeffect/connection-manager

### Usage

[](#usage)

The "default" connection can be accessed by the db() function without passing a connection name.

```
db("default", new mysqli(...));
db("stats", new PDO(...));

$result = db()->query("SELECT * FROM table1");
$statement = db("stats")->prepare("SELECT * FROM table1 WHERE a=? AND b=?");
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

3891d ago

### Community

Maintainers

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

---

Tags

phpdatabasemysqlpdomysqli

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thephpeffect-connection-manager/health.svg)

```
[![Health](https://phpackages.com/badges/thephpeffect-connection-manager/health.svg)](https://phpackages.com/packages/thephpeffect-connection-manager)
```

###  Alternatives

[ifsnop/mysqldump-php

PHP version of mysqldump cli that comes with MySQL

1.3k5.5M69](/packages/ifsnop-mysqldump-php)[sergeytsalkov/meekrodb

The Simple PHP/MySQL Library

341387.0k10](/packages/sergeytsalkov-meekrodb)[clouddueling/mysqldump-php

PHP version of mysqldump cli that comes with MySQL

1.3k22.9k](/packages/clouddueling-mysqldump-php)[stefangabos/zebra_database

An advanced, compact and lightweight MySQL database wrapper library, built around PHP's MySQLi extension.

11812.0k](/packages/stefangabos-zebra-database)[popphp/pop-db

Pop Db Component for Pop PHP Framework

1814.6k11](/packages/popphp-pop-db)[riverside/php-orm

PHP ORM micro-library and query builder

111.2k](/packages/riverside-php-orm)

PHPackages © 2026

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