Have you seen Morph for MongoDB. It is PHP package for MongoDB with an ActiveRecord type interface making it super easy to use MongoDB with PHP.
You can find it at http://code.google.com/p/mongodb-morph/
Personally I think it is pretty good but then I did write it so I'm probably a little biased :)
However, the GridFS stream wrapper would be awesome and something I have thought about writing myself but have yet to find time to implement it.
Cesar D. Rodas
|2010-03-01 20:03:58 - In reply to message 1 from Jonathan Moss|
I wasn't aware about MongoDB-Morph, that's why I started with my ActiveMongo project :-). I just bookmarked it to review it later today.
About the Stream Wrapper, it is always a good idea to make things simple, that's why I created a brief prototype to abstract GridFS as much as possible, and Stream Wrapper were the best option. My prototype is still alpha, just support reads right now, but I'm adding write operations, which are a bit more complex.
If this prototype works and it is well accepted by the community, I'll try to port it to C, in order to merge with PECL/Mongo drive.
|2010-03-03 18:05:32 - In reply to message 1 from Jonathan Moss|
|Ok, maybe Iam stupid, Iam new to "NoSQL/ MongoDB" But I thought it is without "int, varchar, text..." field types. |
So why it uses:
class Book extends Morph_Object
public function __construct($id = null)
Any (logical ) reasons for this?