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

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

seiryow/db-php
==============

PDO wrapper which enable to use Relational DataBase without SQL.

0.0.7(12y ago)023[1 issues](https://github.com/seiryow/db-php/issues)Apache-2.0PHP

Since Jan 2Pushed 12y ago1 watchersCompare

[ Source](https://github.com/seiryow/db-php)[ Packagist](https://packagist.org/packages/seiryow/db-php)[ Docs](https://github.com/seiryow/db-php)[ RSS](/packages/seiryow-db-php/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (6)Used By (0)

db-php
======

[](#db-php)

PDO wrapper

### `index.php`

[](#indexphp)

```
//CONNECT DB
//SQLITE
$dbtype = "sqlite";
$dbname = "./test.db";
$table = "test";
$test = new DB($dbtype, $dbname, $table, null, null);

////MYSQL
//$dbtype = "mysql";
//$host = "localhost";
//$dbname = "test";
//$table = "testtbl";
//$user = "root";
//$pass = "";
//$test = new DB($dbtype, "host={$host};dbname={$dbname}", $table, $user, $pass);

//CREATE TABLE
$schema = array ();
$schema["testint"] = "INTEGER";
$schema["testtxt"] = "TEXT";
$test->create($schema);

//INSERT
$data = array ();
$data["testint"] = 123;
$test->insert($data);
$data["testint"] = 456;
$data["testtxt"] = "abc";
$test->insert($data);
$data["testint"] = 456;
$data["testtxt"] = "xyz";
$test->insert($data);
$data["testint"] = 789;
$data["testtxt"] = "def";
$test->insert($data);

//SELECT ALL
$r = $test->selectAll();
//dump($r);

//SELECT
$where = array ();
$where["testint"] = 456;
$r = $test->select($where);
//dump($r);

//UPDATE
$where = array ();
$update = array ();
$where["testint"] = 789;
$update["testtxt"] = "ghi";
$test->update($update, $where);

$r = $test->select($where);
//dump($r);

$test->insert($data);
$r = $test->selectAll();
//dump($r);
//SELECT by LIKE
$where = array ();
$where["testtxt"] = array (
	"like" => "b"
);
$r = $test->select($where);
//dump($r);

//SELECT with AND
$where = array ();
$where["testint"] = 456;
$update["testtxt"] = "xyz";
$r = $test->select($where);
//dump($r);

//SELECT with OR
$where = array ();
$where["testtxt"] = array (
	"" => "abc",
	"" => "xyz"
);
$r = $test->select($where);
//dump($r);
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% 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 ~0 days

Total

5

Last Release

4563d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4246549?v=4)[seiryow](/maintainers/seiryow)[@seiryow](https://github.com/seiryow)

---

Top Contributors

[![seiryow](https://avatars.githubusercontent.com/u/4246549?v=4)](https://github.com/seiryow "seiryow (12 commits)")[![swatana](https://avatars.githubusercontent.com/u/42424885?v=4)](https://github.com/swatana "swatana (1 commits)")

---

Tags

pdoquery

### Embed Badge

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

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

###  Alternatives

[aura/sqlquery

Object-oriented query builders for MySQL, Postgres, SQLite, and SQLServer; can be used with any database connection library.

4883.1M37](/packages/aura-sqlquery)[envms/fluentpdo

FluentPDO is a quick and light PHP library for rapid query building. It features a smart join builder, which automatically creates table joins.

922530.0k13](/packages/envms-fluentpdo)[lichtner/fluentpdo

FluentPDO is a quick and light PHP library for rapid query building. It features a smart join builder, which automatically creates table joins.

930286.0k6](/packages/lichtner-fluentpdo)[fpdo/fluentpdo

FluentPDO is a quick and light PHP library for rapid query building. It features a smart join builder, which automatically creates table joins.

924251.8k8](/packages/fpdo-fluentpdo)[izniburak/pdox

Useful Query Builder, PDO Class for PHP. A simple access to your SQL records.

29921.5k7](/packages/izniburak-pdox)[atlas/query

Object-oriented query builders and performers for MySQL, Postgres, SQLite, and SQLServer.

43256.9k7](/packages/atlas-query)

PHPackages © 2026

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