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

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

stilmark/database
=================

PHP/Mysqli database connection and query builder.

1.3.15(2mo ago)21881[5 issues](https://github.com/Stilmark/Database/issues)MITPHPPHP ^8.2

Since Dec 24Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/Stilmark/Database)[ Packagist](https://packagist.org/packages/stilmark/database)[ RSS](/packages/stilmark-database/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (2)Versions (55)Used By (0)

Database abstraction for PHP
============================

[](#database-abstraction-for-php)

MySQLi functions, Query builder and Model instance.

[![CodeFactor](https://camo.githubusercontent.com/663c3efe94fe3ee26cbb02bf0d2cfaf158541e3e5bef0b60f2109f26cf362bd2/68747470733a2f2f7777772e636f6465666163746f722e696f2f7265706f7369746f72792f6769746875622f7374696c6d61726b2f64617461626173652f6261646765)](https://www.codefactor.io/repository/github/stilmark/database)

Install using composer
----------------------

[](#install-using-composer)

```
composer require stilmark/database

```

Basic usage
-----------

[](#basic-usage)

```
require('/vendor/autoload.php');

use Symfony\Component\Dotenv\Dotenv;
use Stilmark\Database\Dba;

$dotenv = new Dotenv();
$dotenv->load(ROOT.'/.env');

# Build sql queries
$users = Dba::instance()->table('users')->list();

# Extend your models on Dbi()
$users = User::list();

```

📘 Documentation
---------------

[](#blue_book-documentation)

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance66

Regular maintenance activity

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 54.5% 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 ~37 days

Recently: every ~70 days

Total

53

Last Release

74d ago

PHP version history (3 changes)1.0PHP ^7

1.0.9PHP &gt;=7

1.3.13PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/826978abb9e860bffa4424341fa4f7482d5576ce68400b6cba39ef702f118a52?d=identicon)[stilmark](/maintainers/stilmark)

---

Top Contributors

[![clund](https://avatars.githubusercontent.com/u/1596463?v=4)](https://github.com/clund "clund (60 commits)")[![clund-np](https://avatars.githubusercontent.com/u/117167067?v=4)](https://github.com/clund-np "clund-np (36 commits)")[![clubh](https://avatars.githubusercontent.com/u/39553231?v=4)](https://github.com/clubh "clubh (14 commits)")

---

Tags

databasephp-librarysqli

### Embed Badge

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

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

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

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

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198741.5k12](/packages/pgvector-pgvector)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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