PHP Classes

AR DB Interface: Manage table records as objects using ActiveRecord

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 590 All time: 5,251 This week: 190Up
Version License PHP version Categories
ar-db-interface 1.0GNU General Publi...5.0PHP 5, Databases, Design Patterns


This package can be used to manage database table records as objects using the Active Record design pattern.

The main class takes as parameters a database access object (DAO), the name of a table and the key field.

The class can create, retrieve, update and delete database record mapping class variables to table field values.

The database access is done by the DAO class. Currently there DAO classes to access MySQL databases and to use ADODB classes.

Picture of dave gebler
Name: dave gebler <contact>
Classes: 1 package by
Country: United Kingdom
Age: ???
All time rank: 3066139 in United Kingdom
Week rank: 364 Up14 in United Kingdom Up

  Files folder image Files  
File Role Description
Plain text file adodb.php Class Simple ADOdb wrapper if using non-MySQL
Plain text file db.php Class Generic database interface (used by dbi.php)
Plain text file dbi.php Class Main interface class
Accessible without login Plain text file example.php Example Example usage
Plain text file mysql.php Class MySQL Implementation of DB Interface

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:5,251
This week:190Up