0

I am currently using the MongoDB driver for PHP:

http://php.net/manual/en/set.mongodb.php

However I would also like to be able to use the legacy driver (Mongo for PHP) for compatibility purposes:

http://php.net/manual/en/book.mongo.php

Is there any way that I could use both at the same time in the same PHP script?

1
  • If both support your desired PHP version, I don't see a reason why you couldn't. They're not in conflict with each other as far as I'm aware. Commented Apr 6, 2016 at 7:35

1 Answer 1

1

The only possibility is to use a wrapper, you can find some thing here PHP MongoDB Frameworks

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, didn't think about such a possibility.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.