PHPackages                             uspilot/db\_init - 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. uspilot/db\_init

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

uspilot/db\_init
================

Database init class

v1.0.1(3y ago)017MITPHP

Since Oct 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/uspilot/db_init)[ Packagist](https://packagist.org/packages/uspilot/db_init)[ RSS](/packages/uspilot-db-init/feed)WikiDiscussions master Synced today

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

DBInit class
============

[](#dbinit-class)

Use this class to do initialization of MySQL database using PDO engine

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

[](#installation)

```
$composer require uspilot/db_init

```

Then copy *ini/* folder to your php working dir

Usage
=====

[](#usage)

```
use \DBInit\DBInit;
$pdo = DBInit::initialize();
```

Check that connection is still alive or not:

```
if (!DBInit::checkAlive()) $pdo = DBInit::initialize();
```

Get handler to active PDO connection:

```
$pdo = DBInit::getPdo()?: DBInit::initialize();
```

Default ini file is 'ini/db\_config.php', default path to folder is your php program working dir

'host' file contain section name from db\_config.php configuration file.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

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

Total

2

Last Release

1246d ago

### Community

Maintainers

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

---

Top Contributors

[![uspilot](https://avatars.githubusercontent.com/u/23472538?v=4)](https://github.com/uspilot "uspilot (18 commits)")

### Embed Badge

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

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

###  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)
