26

I've been using CodeIgniter for some quite time, and I've been extremely happy with its Active Record stuff. It's great to query the database with it.

Recently I've started a new project and I can't use such a framework anymore.

Is there a simple PHP Active Record library that does its job and gets out of the way (similar to CodeIgniter's version)?

Luca Matteis
  • 29,161
  • 19
  • 114
  • 169
  • 17
    I don't know (or care) if this is the right place to say this. But I have to say that this is a very constructive question and is absolutely on topic.I am really disappointed that it has been closed. – Chris Harrison Feb 23 '12 at 15:11
  • 2
    It seems like phpactiverecord is the only good active record implementation in PHP out there. Unfortunately it is slowly dying by judging from the commits on their github account. For some reason people are moving towards Doctrine and Propel which both are horrible Hibernate clones. As if PHP didn't suck enough already. *Shaking my head in disbelief*. – dan-klasson Mar 12 '12 at 15:31

4 Answers4

8

Are you explicitly looking for an implementation of the Active Record pattern?

If not you might want to look into an object-relational mapper (ORM), such as Doctrine or Propel. See also this question on SO.

Community
  • 1
  • 1
middus
  • 9,103
  • 1
  • 31
  • 33
  • 3
    yes i am really looking for the Active Record pattern. ORM usually deals with code-generation which i'm not fond of. – Luca Matteis Mar 13 '10 at 14:18
0

you may want to check out http://cinchapps.com/active_record/

-1

You may want to have a look at ADOdb.

-1

You can also try this easy to use active record class which also uses an MySQL abstract layer.

Sergiu
  • 9
  • 1