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

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

lum/lum-db-pdo
==============

Libraries for working with PDO/SQL

v1.0.1(1y ago)041MITPHP

Since Jan 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/supernovus/lum.db-pdo.php)[ Packagist](https://packagist.org/packages/lum/lum-db-pdo)[ RSS](/packages/lum-lum-db-pdo/feed)WikiDiscussions main Synced 2w ago

READMEChangelogDependencies (2)Versions (3)Used By (1)

lum.db-pdo.php
==============

[](#lumdb-pdophp)

Summary
-------

[](#summary)

Extension to [lum-db](https://github.com/supernovus/lum.db.php) for working with PDO/SQL databases.

Namespace
---------

[](#namespace)

`Lum\DB\PDO`

Classes and traits
------------------

[](#classes-and-traits)

ClassDescription`InsertArray`A simplistic INSERT statement builder.`Item`A class representing an Item in an ORM model.`Model`An abstract class representing an ORM model.`Query`An SQL Query builder class.`Reference`A small class representing a DB reference.`ResultArray`A result class that acts like an array.`ResultBag`A quirky extension of ResultArray.`ResultSet`A lazy loading result class. A good default.`Simple`A simple PDO wrapper library.`WhereArray`A simplistic WHERE statement builder.`Schemata\Tables`A class representing a full set of table schemas.`Schemata\*`A bunch of internal classes.`Simple\Alter`A trait with ALTER TABLE methods.`Simple\NativeDB`A trait for running engine-specific SQL files.The `Lum\DB\PDO\Schemata\*` classes currently use their own custom JSON-based format for the schema definition files. They are limited to working with `Lum\DB\PDO\Simple` classes with the `Lum\DB\PDO\Simple\NativeDB` trait. They will likely be replaced by something better in the future.

Official URLs
-------------

[](#official-urls)

This library can be found in two places:

- [Github](https://github.com/supernovus/lum.db-pdo.php)
- [Packageist](https://packagist.org/packages/lum/lum-db-pdo)

Authors
-------

[](#authors)

- Timothy Totten

License
-------

[](#license)

[MIT](https://spdx.org/licenses/MIT.html)

###  Health Score

27

—

LowBetter than 46% of packages

Maintenance47

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

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

Total

2

Last Release

389d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ff04349507190155013e4a94a8b14860a7ac57afce4ba97961c7c79bd023dd7?d=identicon)[supernovus](/maintainers/supernovus)

### Embed Badge

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

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

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