7

Is there a Micro-ORM similar to Dapper, PetaPoco, or Massive ... but for PHP?

Chris Moschini
  • 35,226
  • 19
  • 156
  • 186
BuddyJoe
  • 67,353
  • 112
  • 287
  • 456

3 Answers3

8

You can check out Idiorm & Paris.

dragosplesca
  • 525
  • 5
  • 12
6

I consider http://redbeanphp.com/ to be a very lightweight ORM, not sure if it's comparable to the ones you listed.

Jordan
  • 4,370
  • 6
  • 31
  • 42
  • How well does RedBeanPHP handle dates now? Is there clear examples on how to avoid problems mentioned here: http://stackoverflow.com/questions/3212917/redbean-o-rm-store-date-as-varchar255 – BuddyJoe Dec 09 '11 at 23:07
  • It's designed to handle them differently from how Sirber describes in the linked question: http://www.redbeanphp.com/extra/special_types – Jordan Dec 09 '11 at 23:18
  • Re: special types - Any thoughts on this question: http://stackoverflow.com/questions/8495750 – BuddyJoe Dec 13 '11 at 20:29
5

IMHO ORM is not only right way, for many reasons. May be some DAL could be enough in many cases. Try e.g. simple and smart query builder FluentPDO

MarekLi
  • 951
  • 1
  • 12
  • 18