tags:

views:

206

answers:

4

I'm interested in knowing if there is a pure object oriented database for PHP. Something similar to zodb for Python.

I'm not really looking for an object-relational mapper. So no active record clones...

A: 

There are one or two. Scan for PHP here: http://en.wikipedia.org/wiki/Comparison_of_object_database_management_systems

zaf
I've already checked there, but none of the ones listed are similar to zodb...I'm hoping there's something someone may have heard of that hasn't made it to that page yet (some of the information there is outdated).
Omega
Yes, the PHP options look like monsters ;)
zaf
Well, certainly not as intuitive as zodb. And I'm inclined to consider switching over to zope. I'm just not as comfortable and familiar with it as I am with PHP!
Omega
Well, if that's what you want and don't want to write something yourself then zope it is for you. I've used zope and friends in the past and was fun while it lasted.
zaf
Lasted? What came after?
Omega
It lasts until I get lost in the app and it doesn't feel like programming anymore and I'm not sure why or how something is done. This comes down to experience, mainly not because of the app (for example zope is very well thought out and maintained by mostly experts), but my own lack of understandings. To rectify that and learn, I move on. I think with zope it was when I did a project with plone. I think the client wanted a vase without the flowers and he got the kitchen sink full of dirty plates. What came after is another story :)
zaf
+1  A: 

Have you looked into document oriented databases like CouchDB? They are very much like object oriented DBs and using them in PHP is really easy: http://en.wikipedia.org/wiki/Document-oriented_database

eikes
+1  A: 

If you want to go the NoSQL way and use a document oriented database with PHP, I would recommend MongoDB, since it already has native PHP support (if you enable the Mongo module, see http://www.php.net/manual/en/book.mongo.php). Of course it will not be the same as zodb (since it's not a pure object db), but seems to come close. Just have a look at it and see if it fits your requirements.

This does however require you to install and run a MongoDB daemon, so it might not be what you're looking for...

wimvds