PHPackages                             alexmcarrow/db - 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. alexmcarrow/db

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

alexmcarrow/db
==============

MySQL(i) class

1.42(13y ago)039MITPHPPHP &gt;=5.3.0

Since Jun 4Pushed 13y agoCompare

[ Source](https://github.com/alexmcarrow/db)[ Packagist](https://packagist.org/packages/alexmcarrow/db)[ Docs](https://github.com/AlexMcArrow/db)[ RSS](/packages/alexmcarrow-db/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (7)Used By (0)

DB - MySQL(i) class
===================

[](#db---mysqli-class)

Init
----

[](#init)

```
$DSN = array (
    'host'=>'localhost',
	'base'=>'dbname',
	'user'=>'user',
	'pass'=>'password',
	'char'=>'utf-8'
);
new \DBI\MySQL ($DSN);
```

Use
---

[](#use)

```
\DBI\MySQL::query ("SELECT 1;");
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity62

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

Total

6

Last Release

4774d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9628c57766ce12331abf87709d989b193fe123b6a358859d49f7df6edab6545f?d=identicon)[AlexMcArrow](/maintainers/AlexMcArrow)

---

Top Contributors

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

---

Tags

mysqlmysqli

### Embed Badge

![Health badge](/badges/alexmcarrow-db/health.svg)

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

###  Alternatives

[aplus/database

Aplus Framework Database Library

3391.6M7](/packages/aplus-database)[sergeytsalkov/meekrodb

The Simple PHP/MySQL Library

340402.6k12](/packages/sergeytsalkov-meekrodb)[ezsql/ezsql

Advance database access library. Make interacting with a database ridiculously easy. An universal interchangeable CRUD system.

86748.3k](/packages/ezsql-ezsql)[jv2222/ezsql

Advance database access library. Make interacting with a database ridiculously easy. An universal interchangeable CRUD system.

86811.4k2](/packages/jv2222-ezsql)[stefangabos/zebra_session

A drop-in replacement for PHP's default session handler which stores session data in a MySQL database, providing better performance, better security and protection against session fixation and session hijacking

174116.9k2](/packages/stefangabos-zebra-session)[stefangabos/zebra_database

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

11712.4k](/packages/stefangabos-zebra-database)

PHPackages © 2026

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