Do you have a question? Post it now! No Registration Necessary. Now with pictures!
April 1, 2011, 6:21 am
rate this thread
I have been looking for a very light weight PHP ORM library and I came
up with a few choices. Most choices require some form of
configuration, e.g. adding more fields to the class and many of them
are not so intuitive.
I do not want to use a framework, but prefer just the ORM for Q&D
Anyway, I built my own PHP ORM library called SORM (Simple ORM). You
can checkout the code and examples at
I would appreciate if you can provide some feedback or directions on
how to proceed, things to change etc.
I want to use mysqli for database queries, specifically for prepared
statements, so as to avoid SQL injection.
1. Is there a way to use prepared statement with regular PHP - SQL
2. Is mysqli installed by default when you install PHP? (PHP 5.2 and
April 1, 2011, 7:51 am
Re: PHP ORM Feedback requested
I'm afraid I don't have time to provide feedback but good luck anyway :)
I suppose it's a matter of opinion but I tried mysqli once and I really
hated it. It has a pretty complicate and incoherent API. I've found PDO
Not natively. You can write a custom abstraction layer on top of it and
emulate the feature with some string handling (I've done it and it's not
too complicate) but it'll always be a hack (e.g., parsed statements
cannot be cached). On the contrary, both mysql and PDO have provide it.
It's not built-in in the main binary, if that's what you ask, so it can
be enabled and disabled, just like good old mysql extension. (My hosting
provider includes, if that helps you to make a little survey.)
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com