Appendix D. MongoDB in PHP, Java, and C++

This book has presented MongoDB through the lenses of JavaScript and Ruby. But there are plenty of other ways to communicate with MongoDB, and this appendix presents three that span the gamut. I’ll start with PHP because it’s a popular scripting language. I include Java because it’s still arguably the language of the enterprise and thus important to a lot of readers of this book. Plus, the Java driver’s API diverges significantly from that of most scripting languages. Finally, I’ll present the C++ driver because it’s a core part of MongoDB’s codebase, and it’s likely to be useful to developers wanting to build high-performance standalone applications.

Each language section describes how to construct ...

Get MongoDB in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.