PHPackages                             99designs/pheasant-adodb - 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. 99designs/pheasant-adodb

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

99designs/pheasant-adodb
========================

A subset of the ADOdb API on Pheasant

v1.0.0(9y ago)013.9kBSD-4-ClausePHPPHP &gt;=5.3.2

Since Nov 26Pushed 9y ago1 watchersCompare

[ Source](https://github.com/mtibben/pheasant-adodb)[ Packagist](https://packagist.org/packages/99designs/pheasant-adodb)[ Docs](http://github.com/mtibben/pheasant-adodb)[ RSS](/packages/99designs-pheasant-adodb/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

Pheasant-adodb
==============

[](#pheasant-adodb)

Implements a subset of the [ADOdb](http://phplens.com/adodb/) API using [Pheasant](http://getpheasant.com/)

Example Usage
-------------

[](#example-usage)

```
# set up Pheasant connection
$pheasant = \Pheasant::setup('mysql://user@localhost/mydb');
$adodbConnection = new \PheasantAdodb\Connection($pheasant->connection());

# start using ADOdb API
$adodbConnection->Execute("SELECT 1,2,3")->GetAll();
```

Or as a drop in replacement for adodb, you can use the compatability include files

```
# include compatibility files
require_once('adodb/adodb.inc.php');
require_once('adodb/adodb-exceptions.inc.php');

# instantiate ADOdb, set fetch mode
$adodbConnection = ADONewConnection('mysql://user@localhost/mydb');
$adodbConnection->setFetchMode(ADODB_FETCH_ASSOC);

# start using ADOdb API
$adodbConnection->Execute("SELECT 1,2,3")->GetAll();
```

Limitations and assumptions
---------------------------

[](#limitations-and-assumptions)

- Tries to match the behavour of ADOdb v4.81 with the adodb-mysqlt driver only
- `->Replace(` does not support disabling auto quoting
- Every field is escaped as if it were a string
- Magic quotes not supported
- If instantiated directly
    - Assumes ADODB\_FETCH\_ASSOC as the only fetchmode
    - Throws exceptions instead of returning error codes
- If instantiated via ADONewConnection
    - requires `->setFetchMode(ADODB_FETCH_ASSOC)` to be called
    - returns error codes unless `adodb-exceptions.inc.php` is included

Testing
-------

[](#testing)

The testsuite uses the real adodb (with mysqlt driver) to compare the results from API calls.

```
composer install --dev
mysql -e 'create database pheasantadodb_test1;'
mysql -e 'create database pheasantadodb_test2;'
phpunit
```

[![Build Status](https://camo.githubusercontent.com/d93ce6b36e4c65ea13019297658b8355a80293141cfbc0e9b9b1866b140cdd57/68747470733a2f2f6170692e7472617669732d63692e6f72672f6d74696262656e2f7068656173616e742d61646f64622e706e67)](https://travis-ci.org/99designs/pheasant-adodb)

###  Health Score

30

—

LowBetter than 67% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

3415d ago

Major Versions

v0.3.1 → v1.0.02016-11-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/61d94165c13417941a32d14d4468f27868c7643e96495090cfd33009055ea48c?d=identicon)[mtibben](/maintainers/mtibben)

![](https://www.gravatar.com/avatar/5671803ce7f389a542ef95654451a921002ff34f7112b4c86be3e827b1cf89c2?d=identicon)[lox](/maintainers/lox)

![](https://www.gravatar.com/avatar/6d43d23630fc281c26ff5872d03d054e1508b5676eeefee1424464ab5c0f00e4?d=identicon)[arthens](/maintainers/arthens)

---

Top Contributors

[![mtibben](https://avatars.githubusercontent.com/u/980499?v=4)](https://github.com/mtibben "mtibben (36 commits)")

---

Tags

ormmysqlactiverecorddatamapperadodbpheasant

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/99designs-pheasant-adodb/health.svg)

```
[![Health](https://phpackages.com/badges/99designs-pheasant-adodb/health.svg)](https://phpackages.com/packages/99designs-pheasant-adodb)
```

###  Alternatives

[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58423.2M27](/packages/scienta-doctrine-json-functions)[dunglas/doctrine-json-odm

An object document mapper for Doctrine ORM using JSON types of modern RDBMS.

6254.8M7](/packages/dunglas-doctrine-json-odm)[mmucklo/queue-bundle

Symfony2/3/4/5 Queue Bundle (for background jobs) supporting Mongo (Doctrine ODM), Mysql (and any Doctrine ORM), RabbitMQ, Beanstalkd, Redis, and ... {write your own}

120803.2k](/packages/mmucklo-queue-bundle)[longitude-one/doctrine-spatial

Doctrine multi-platform support for spatial types and functions, compliant with Doctrine 2.19, 3.1, and dev ones (3.2 and 4.0).

891.3M1](/packages/longitude-one-doctrine-spatial)[tommyknocker/pdo-database-class

Framework-agnostic PHP database library with unified API for MySQL, MariaDB, PostgreSQL, SQLite, MSSQL, and Oracle. Query Builder, caching, sharding, window functions, CTEs, JSON, migrations, ActiveRecord, CLI tools, AI-powered analysis. Zero external dependencies.

815.7k](/packages/tommyknocker-pdo-database-class)

PHPackages © 2026

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