PHP Classes

My Active Record: Map objects to MySQL database table rows

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 72%Total: 6,682 All time: 307 This week: 40Up
Version License Categories
myactiverecord 1.0.0BSD LicenseDatabases, Design Patterns
Description 

Author

This class can be used to map objects to MySQL database rows using Martin Fowler's Active Record design pattern as popularised by Ruby on Rails.

It can store and retrieve objects in MySQL tables with minimal configuration.

Applications can use sub-classes of this base class to create application domain objects that support relationships, data validation, compound properties, clean ups and transactions.

This base class looks up the columns in a MySQL database tables automatically, and translates these to object properties.

Picture of Jake Grimley
Name: Jake Grimley <contact>
Classes: 1 package by
Country: United Kingdom

 

  Files folder image Files (5)  
File Role Description
Files folder imagedoc (3 files)
Accessible without login Plain text file example.php Example example script featuring various methods
Plain text file MyActiveRecord.0.4.php Class Source Code

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:6,682
This week:0
All time:307
This week:40Up
User Ratings User Comments (1)
 All time
Utility:91%StarStarStarStarStar
Consistency:86%StarStarStarStarStar
Documentation:92%StarStarStarStarStar
Examples:85%StarStarStarStarStar
Tests:-
Videos:-
Overall:72%StarStarStarStar
Rank:201
 
I have not used this class yet, in anger so to speak.
16 years ago (Chris Rigg-Milner)
77%StarStarStarStar