phpmongodb / phpmongodb-1

http://www.phpmongodb.org
GNU General Public License v3.0
82 stars 39 forks source link

Update to new PHP MongoDB driver #26

Closed laurinkeithdavis closed 7 years ago

laurinkeithdavis commented 8 years ago

The one used is deprecated. Any change of upgrading to the new driver?

phpmongodb commented 8 years ago

Hi Laurin I am not clear what your are saying please elaborate.

Thanks

laurinkeithdavis commented 8 years ago

"To make things right, you must install php_mongo module. Here for installation documents on PHP.net."

This application uses the PHP Mongo driver (http://php.net/manual/en/mongo.setup.php), which is deprecated and has been replaced by the PHP MonogDB drive (http://php.net/manual/en/set.mongodb.php) and extended by the PHP MongoDB Library (https://github.com/mongodb/mongo-php-library).

phpmongodb commented 8 years ago

Thanks for your support.

code-fury commented 8 years ago

is it fixed?

phpmongodb commented 8 years ago

code-fury : Yes but i want publish both version please suggest what will be good way.

code-fury commented 8 years ago

Can you pack 2 versions in this repo so people can chose which to use

phpmongodb commented 8 years ago

Thank you for your support. Do you want other feature if you have any idea please suggest.

devsibwarra commented 8 years ago

Is it possible to re-organize the code to support both versions, preferring the newer PHP MongoDB? If not, I'd suggest creating a branch or tag supporting the older mongo module and point to it in README.md, then update master with support for the new mongodb module.

RobbieLePommie commented 8 years ago

I have a forked version https://github.com/RobbieLePommie/phpmongodb that supports only the newer drivers.

Quick warning: very quickly hacked to get the new drivers in; I've not (yet) optimised anything to benefit from the newer drivers and not all features have been tested. But allows me to do the basics.

phpmongodb commented 8 years ago

@RobbieLePommie 👍