CodeIgniter Forums
A similar CodeIgniter Database class in native php? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: A similar CodeIgniter Database class in native php? (/showthread.php?tid=4980)



A similar CodeIgniter Database class in native php? - El Forum - 12-28-2007

[eluser]Unknown[/eluser]
Hi all,
Is there a class that is similar to the CodeIgniter Database class outside of php? There are some instances where I cannot use CI but I love the database class in CI. Is there an alternative?

Thanks!


A similar CodeIgniter Database class in native php? - El Forum - 12-28-2007

[eluser]imzyos[/eluser]
native... NO, PDO on php5 rlz but, if you want find a external library, propel, doctrine, even the CI database class could be separate from CI


A similar CodeIgniter Database class in native php? - El Forum - 12-30-2007

[eluser]Jim OHalloran[/eluser]
There's a couple of libraries around with similar interfaces to the CI database library. I've used ezSQL, it's lightweight, and pretty powerful (but no ActiveRecord, which I don't use anyway). There's also adodb which works very well, and has an ActiveRecord implementation.

I'm sure with some changes the CI DB class could also be used outside of the CI framework.

Jim.