PHPackages                             vilshub/dbant - 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. vilshub/dbant

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

vilshub/dbant
=============

dbAnt is a PHP library for database IO, used in zion light framework

v1.2.0(3y ago)01172MITPHPPHP &gt;=5.3.0

Since Jan 25Pushed 3y agoCompare

[ Source](https://github.com/VilsHub/dbant)[ Packagist](https://packagist.org/packages/vilshub/dbant)[ RSS](/packages/vilshub-dbant/feed)WikiDiscussions master Synced today

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

dbAnt Overview
==============

[](#dbant-overview)

dbAnt is a PHP library for database IO, used in zion light framework

Requirements
------------

[](#requirements)

- It requires PHP version 5.x
- vilshub/helpers library

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

[](#installation)

It supports composer installation, with link **composer require vilshub/dbant**

Features
--------

[](#features)

- Single query execution with prepared statement support
- Batch query execution with prepared statement support

Demo
----

[](#demo)

**Single query execution**

```

```

**Batch query execution**

```

```

Documentation
-------------

[](#documentation)

**run() method**

The run method executes an SQL statement via PDO extention.

**Syntax**

```
    $obj->run($query, [$data])
```

The second argument $data is optional, only used when data is to be supplied for query.it returns the following:

```
[
    "status"=>false | true,
    "rowCount"=>null | totalAffectRow,
    "lastInsertId"=>null | lastInsertedID,
    "data"=>null | fetchedResult
]

```

**batchRun() method**

The batchRun method executes multiple SQL queries using the suplied data on a single SQL query. It executes SQL statement via PDO extention.

**Syntax**

```
$obj->batchRun($query, $data)
```

The second argument $data must be numeric array of arrays of values to be executed on the supplied query. It returns TRUE on successfull batch execution.

More comprehensive documentation for this library will be provided soon, you may **Watch**, this repo for further updates.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity53

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

Total

2

Last Release

1108d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/67ae0b10e4221764cc1d283688d94669652bab40c5cb00e9f3e75c92478ddef1?d=identicon)[Starlyvil](/maintainers/Starlyvil)

---

Top Contributors

[![Starlyvil](https://avatars.githubusercontent.com/u/31422222?v=4)](https://github.com/Starlyvil "Starlyvil (14 commits)")

### Embed Badge

![Health badge](/badges/vilshub-dbant/health.svg)

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

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