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 1w 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

26

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity54

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

1154d 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.8k117.8M121](/packages/jdorn-sql-formatter)[backup-manager/backup-manager

A framework agnostic database backup manager with user-definable procedures and support for S3, Dropbox, FTP, SFTP, and more with drivers for popular frameworks.

1.7k1.6M11](/packages/backup-manager-backup-manager)[propel/propel1

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

8351.6M88](/packages/propel-propel1)[insolita/yii2-migration-generator

Set of gii tools for generating files for migration by schema of table , phpdoc or table data

108508.0k5](/packages/insolita-yii2-migration-generator)[xpdo/xpdo

A PDO-based Object/Relational Bridge Library

7088.4k4](/packages/xpdo-xpdo)[voku/session2db

A PHP library acting as a wrapper for PHP's default session handling functions which stores data in a MySQL database, providing both better performance and better security and protection against session fixation and session hijacking.

2920.0k](/packages/voku-session2db)

PHPackages © 2026

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