Forum Moderators: coopster
I have looked into the PEAR-based [pear.php.net] tools like MDB [pear.php.net] and also looked at the pure php 5 PDO [us2.php.net] functionality, and a bunch of others.
What have others chosen? I'm primarily interested in having a layer that abstracts what type of DB I'm talking to, and a layer on top of that (like active record) that turns interacting with a DB into interacting with an object.
A friend of mine is always praising Rails, and how easy the DB interaction is out of the box. Most of the DBO for PHP stuff I run into requires that I pre-configure each DB table in a class.
What have others found to be the easiest implementation of DB abstraction and 'objectification', that is still flexible?
I have written my own database interface classes and for all projects now, i just extend classes with new classes and start working easily. It not only gives me fast method of development but also the ease of dealing with databases with the same technqiues.
Did you try PEAR package for PHP? also php classes [phpclasses.org] is worth of book marking.