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

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

netsilik/db-handler
===================

PHP wrapper around the MySQLi Database Extensions, providing intuitive access to prepared queries.

3.3.0(3y ago)01.2k2[1 PRs](https://github.com/Netsilik/DbHandler/pulls)EUPL-1.1PHPPHP ^8.1CI failing

Since Jun 27Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/Netsilik/DbHandler)[ Packagist](https://packagist.org/packages/netsilik/db-handler)[ Docs](https://gitlab.com/Netsilik/DbHandler)[ RSS](/packages/netsilik-db-handler/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (3)Versions (15)Used By (0)

DbHandler Handler
=================

[](#dbhandler-handler)

PHP wrapper around the MySQLi Database Extensions, providing intuitive access to prepared queries.

---

European Union Public Licence, v. 1.1

Unless required by applicable law or agreed to in writing, software distributed under the Licence is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

Contact: Latest version available at:

Installation
------------

[](#installation)

```
composer require netsilik/db-handler

```

Usage
-----

[](#usage)

```
use Netsilik\DbHandler;

$dbHandler = new DbHandler('localhost', 'user', 'password', 'test');

$result = $dbHandler->query("INSERT INTO tests VALUES (null, %s)", 'foo');
$result = $dbHandler->query("SELECT * FROM tests ORDER BY id DESC LIMIT 3");
var_dump( $result->getInsertedId() );
var_dump( $result->getAffectedRecords() );
var_dump( $result->getFieldCount() );
var_dump( $result->getRecordCount() );
var_dump( $result->fetch() );
$result->dump();

echo '';

$result = $dbHandler->rawQuery("INSERT INTO tests VALUES (null, 'foo')");
$result = $dbHandler->query("SELECT * FROM tests ORDER BY id DESC LIMIT 3");
var_dump( $result->getInsertedId() );
var_dump( $result->getAffectedRecords() );
var_dump( $result->getFieldCount() );
var_dump( $result->getRecordCount() );
var_dump( $result->fetch() );
$result->dump();
```

###  Health Score

42

—

FairBetter than 89% of packages

Maintenance50

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity76

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

Recently: every ~295 days

Total

13

Last Release

1330d ago

Major Versions

2.0.0 → 3.0.02019-07-18

PHP version history (2 changes)2.0.0PHP ^7.3

3.3.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/90d507c4b8102af88517672375ad0777056f35baecaf2ea94dbc7b7c2e7c5512?d=identicon)[Jacco-V](/maintainers/Jacco-V)

---

Top Contributors

[![Jacco-V](https://avatars.githubusercontent.com/u/19333579?v=4)](https://github.com/Jacco-V "Jacco-V (64 commits)")

---

Tags

databasemysqlmariadbmysqli

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k595.8M6.5k](/packages/doctrine-dbal)[aplus/database

Aplus Framework Database Library

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

The Simple PHP/MySQL Library

340402.6k12](/packages/sergeytsalkov-meekrodb)

PHPackages © 2026

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