PHPackages                             senhung/database-interaction - 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. senhung/database-interaction

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

senhung/database-interaction
============================

PHP interactions with databases

v1.2.0(8y ago)0191MITPHPPHP &gt;=7.1.0

Since May 15Pushed 8y agoCompare

[ Source](https://github.com/senhungwong/php-database)[ Packagist](https://packagist.org/packages/senhung/database-interaction)[ RSS](/packages/senhung-database-interaction/feed)WikiDiscussions master Synced 3w ago

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

PHP Database
============

[](#php-database)

Description
-----------

[](#description)

The package contains functions to interact with MySQL database.

Package Namespace: `Senhung\DB`

Setup
-----

[](#setup)

1. Composer Install

```
$ composer require senhung/database-interaction
```

2. Config

Copy `.env.example` to `.env` and fill out the database settings

Examples
--------

[](#examples)

Usage examples are in `examples/...`

run the following to test all examples:

```
$ php example
```

How To Use
----------

[](#how-to-use)

### Database

[](#database)

- [Connection](docs/database/connection.md)
- [Query Builder](docs/database/querybuilder.md)

### Schema

[](#schema)

- [Blueprint](docs/schema/blueprint.md)
- [Schema](docs/schema/schema.md)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

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

4

Last Release

2968d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/34116371?v=4)[senhung](/maintainers/senhung)[@senhung](https://github.com/senhung)

---

Top Contributors

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

---

Tags

composerphp

### Embed Badge

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

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M117](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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