6

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

Chris Moschini
  • 36,764
  • 19
  • 160
  • 190
BuddyJoe
  • 69,735
  • 114
  • 291
  • 466

3 Answers3

7

You can check out Idiorm & Paris.

dragosplesca
  • 515
  • 6
  • 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,510
  • 7
  • 34
  • 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
4

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
  • 941
  • 1
  • 12
  • 18