OutletORM and phpDataMapper

I played with two good php based ORMs. OutletORM and phpDataMapper .

Does anyone have any experience with them? Any advantages of one over the other. It is also a good question to ask which one has a large user base.

+6
php orm
source share
2 answers

Both are implementations of the Data Mapper template.

While phpDataMapper is a more loyal approach to the template, I found that it is sometimes too idealistic and strict.

OutletORM, on the other hand, is much more pragmatic and flexible (it does not require you to extend any base classes, for example). This is also a more mature project.

Doctrine is a great project, but huge and bloated for the simplest applications.

I would go with an Outlet!

+2
source share

I am currently working with phpDataMapper. So far I have encountered two problems:

  • "Documentation", which is nothing more than a bunch of examples that cover only part of the functions. No link ...! You need to go through the source files and experiment if you want to use something that is missing (e.g. delete ()!)

  • There is no binary type (blob / mediumblob / binary / etc ...). I had to add it myself!

Other things I noticed:

  • Their β€œessential” model is useless, I mean, I'm just adding functions to the display class itself ... what was it for?

  • There is a php paginated file that looks interesting, but of course, no documentation is visible anywhere.

  • the source is surprisingly small and neat, which is really good because (sorry for repeating yourself) there is no document!

All in all, a pretty pleasant experience, but not quite a magical time, saving a piece of code ... if you want to use it, you can do some reading and modifying the code at your source.

0
source share

All Articles