Extension hooks and skeleton of phongo, and basic bson implementation

Not really. Don't think libmongoc supports that - and you can do it in userland anyway: bson_encode(json_decode($json));.

I'm unsure what the usecase for this is would be.

bson_to_json() is handy to debug stuffz...