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(2y ago)01172MITPHPPHP &gt;=5.3.0

Since Jan 25Pushed 2y agoCompare

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

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 37% 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

1062d 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

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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