colinmollenhour / mongodb-php-odm

A simple but powerful set of wrappers for using MongoDb in PHP (also a Kohana 3 module)
BSD 3-Clause "New" or "Revised" License
208 stars 50 forks source link

Namespace the project #23

Closed matsolastrom closed 11 years ago

matsolastrom commented 12 years ago

Hi!

Namespacing the project is a good idea, so that it is easy to plug in as a module to various PSR-0 compatible frameworks.

I currently use it in FuelPHP (since the built-in one in Fuel sucks), but I would like to get updates via a simple pull instead. The file structure is perfect for cloning it into a fuelphp package folder.

//MO

matsolastrom commented 12 years ago

When namespacing, also need to Backslash things such as "new \MongoId" or "\Exception"

colinmollenhour commented 11 years ago

Unfortunately this would break backwards compatibility..