PHPackages                             roojs/pdo\_dataobject - 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. roojs/pdo\_dataobject

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

roojs/pdo\_dataobject
=====================

ORM based on PEAR::DB\_DataObject ported for PHP5/7 and PDO

v0.0.4(6y ago)123.1k↓37.9%11[1 issues](https://github.com/roojs/PDO_DataObject/issues)[1 PRs](https://github.com/roojs/PDO_DataObject/pulls)LGPL-3.0PHPCI passing

Since Jan 14Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/roojs/PDO_DataObject)[ Packagist](https://packagist.org/packages/roojs/pdo_dataobject)[ Docs](https://github/roojs/PDO_DataObject#v0.0.4)[ RSS](/packages/roojs-pdo-dataobject/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (12)Used By (0)

PDO\_DataObject
===============

[](#pdo_dataobject)

PDO replacement for PEAR's DB\_DataObject

Work has been funded by CentralNic Group plc

---

Manual :

[https://roojs.github.io/PDO\_DataObject/docs/index.html](https://roojs.github.io/PDO_DataObject/docs/index.html)

---

In General, this should be API compatible with DB\_DataObject, except for

- getDatabaseConnection(), which is replaced with PDOConnection() - and returns a PDO object, rather than a PEAR DB object.
- staticGet() - has been removed
- array of database (like a pool is no longer supported) - use a DB proxy

Other Changes a) chained methods (prefixed with 'c', and throw exceptions) $key\_value = DB\_DAtaObject::Factory('table') -&gt;cautoJoin() -&gt;cwhere('A=12') -&gt;climit(0,10) -&gt;fetchAll('id','name');

b) Default behaviour is to throw exceptions (compatibility - PEAR::Error is available as a setting)

c) Overloading has been removed - you should be able to wrap the DataObject and add it back in (it's not recommended - causes more problems than it solves)

d) You can configure DataObjects direct by setting PDO\_DataObject::$config - (if PEAR is not loaded, then PEAR::getStaticPropery will not be called...)

---

Commit Log

- note we use git autocommit on save - so the early history does not have much valuable information - as we near completion, valid commit messages will be used.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance52

Moderate activity, may be stable

Popularity33

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 99.8% 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 ~2 days

Total

2

Last Release

2500d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/89decf49672740af8530eb96a3e75b54b0fe267dc9045dbf8be4397873515ff0?d=identicon)[roojs](/maintainers/roojs)

---

Top Contributors

[![roojs](https://avatars.githubusercontent.com/u/415282?v=4)](https://github.com/roojs "roojs (3677 commits)")[![xaben](https://avatars.githubusercontent.com/u/720487?v=4)](https://github.com/xaben "xaben (5 commits)")[![gbxyz](https://avatars.githubusercontent.com/u/665401?v=4)](https://github.com/gbxyz "gbxyz (1 commits)")

---

Tags

orm

### Embed Badge

![Health badge](/badges/roojs-pdo-dataobject/health.svg)

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

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

Symfony DoctrineBundle

4.8k241.3M3.3k](/packages/doctrine-doctrine-bundle)[doctrine/persistence

The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doctrine object mappers share.

4.1k286.5M762](/packages/doctrine-persistence)[gedmo/doctrine-extensions

Doctrine behavioral extensions

4.1k118.8M366](/packages/gedmo-doctrine-extensions)[illuminate/database

The Illuminate Database package.

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

A set of extensions to Doctrine 2 that add support for additional query functions available in MySQL, Oracle, PostgreSQL and SQLite.

2.1k75.1M146](/packages/beberlei-doctrineextensions)

PHPackages © 2026

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