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

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

az26/db
=======

database class

v0.3.1(2y ago)017PHPPHP &gt;=7.0.0

Since Apr 1Pushed 2y agoCompare

[ Source](https://github.com/26az/db)[ Packagist](https://packagist.org/packages/az26/db)[ RSS](/packages/az26-db/feed)WikiDiscussions main Synced today

READMEChangelog (4)DependenciesVersions (5)Used By (0)

demo
====

[](#demo)

```
use Az26\Util\Db;

require_once '../vendor/autoload.php';
$conf = [
    'driver' => 'mysql',
    'host' => 'localhost',
    'port' => '3306',
    'name' => 'test',
    'user' => 'root',
    'pass' => 'phpts',
    'char' => 'utf8',
];

$db = new Db($conf);

$row = $db->fetchOne("select * from posts limit 1");
vd($db->getSql('posts', $row));
vd($db->getSql('posts', $row, [], 'pgsql'));
vd($row);

```

batch insert
------------

[](#batch-insert)

```
$rows = [
    ['name' => 'dd', 'sex' => 'f', 'age' => 12],
    ['name' => 'aa', 'sex' => 'm', 'age' => 12]
];
$db->table('users')->insert($rows);

```

batch update
------------

[](#batch-update)

```
$rows = [
    ['name' => 'dd', 'sex' => 'f', 'id' => 1],
    ['name' => 'aa', 'sex' => 'm', 'id' => 2]
];
$db->table('users')->update($rows, 'id');

```

pluck
-----

[](#pluck)

```
$db->table('users')->order('id', 'desc')->limit(2)->pluck('name', 'id');
1# array (
  19 => 'aa',
  18 => 'dd',
)

```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

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

Total

4

Last Release

1089d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/73e58d681c34d95fb51d20bfe46d58d42501f3cb537b674aeb01d504826a3e08?d=identicon)[lukeme](/maintainers/lukeme)

---

Top Contributors

[![lukeme](https://avatars.githubusercontent.com/u/731269?v=4)](https://github.com/lukeme "lukeme (1 commits)")

### Embed Badge

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

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

###  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)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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