PinoyTech.org

CodeIgniter, Kohana, Mootools, jQuery and CSS

Simple ORM Solutions

Posted by teejay on February 18, 2010

The two solutions I have are the Outlet ORM and the phpDataMapper. I've tested both in terms of speed. phpDataMapper seemed to be faster than Outlet ORM. In terms of the learning curve, they pretty much the same. Outlet just required a lot more configuration to be set up.

So here's a very quick comparison between both of them:

Outlet ORM

  • required a little more configuration to start (the need to create functions to retrieve related table data)
  • Much slower (I haven't really tested on bigger datasets)
  • Uses PDO, so I believe it handles anything PDO can handle
  • In terms of community, Outlet has a bigger and older one.
  • Bigger documentation but some things haven't been updated for a while.

phpDataMapper

  • works a lot like the Kohana ORM
  • Much faster (I haven't really tested on bigger datasets)
  • Uses PDO, so I believe it handles anything PDO can handle
  • A lot more files than Outlet
  • Smaller documentation but pretty much up to date

In the end, if you choose one of these it wouldn't really matter and the overhead will probably be minuscule.

However, if these are a bit too simple for your taste and you like the bigger ORM's, you'd probably be interested in Propel and Doctrine.

Categories: Web Development

Tags: orm

No Comments

Comments are not allowed