Over a million developers have joined DZone.

MongoDB and PHP, The Book

DZone's Guide to

MongoDB and PHP, The Book

Free Resource

Whether you work in SQL Server Management Studio or Visual Studio, Redgate tools integrate with your existing infrastructure, enabling you to align DevOps for your applications with DevOps for your SQL Server databases. Discover true Database DevOps, brought to you in partnership with Redgate.

I wrote a book.

Published by O’Reilly, it’s now available on Amazon, O’Reilly Media and a bunch of other sites. It’s available as a ebook as well as in print.

From the introduction:

What would happen if you optimized a data store for the operations application developers actually use? You’d arrive at MongoDB, the reliable document-oriented database. With this concise guide, you’ll learn how to build elegant database applications with MongoDB and PHP.

Written by the Chief Solutions Architect at 10gen—the company that develops and supports this open source database—this book takes you through MongoDB basics such as queries, read-write operations, and administration, and then dives into MapReduce, sharding, and other advanced topics. Get out of the relational database rut, and take advantage of a high-performing system optimized for operations and scale.

  • Learn step-by-step the tools you need to build PHP applications with MongoDB
  • Perform Create, Read, Update, and Delete (CRUD) operations, and learn how to perform queries to retrieve data
  • Administer your database, and access and manipulate data with the MongoDB Shell
  • Use functions to work with sets, arrays, and multiple documents to perform synchronous, asynchronous, and atomic operations
  • Discover PHP’s community tools and libraries, and why they’re valuable
  • Work with regular expressions, aggregation, MapReduce, replication, and sharding


So far reviews have been quite positive, with most criticisms coming from the short length. O’Reilly has begun a new program where they release shorter books for less money and get them to market much quicker. It makes a lot of sense, most tech books take 2 – 3 years to write the 200 – 400 pages and by the time the are ready to print, a lot of the technology has changed.  The nice thing about these shorter books is they are on the market much faster and much less over head is spent. It also makes for easier reading for you as it’s more digestible.

MongoDB and PHP  tops out just shy of 80 pages, my contract with O’Reilly was for 50 pages so I did my very best to put as much as possible into the text and completely agree with the challenge of covering an entire topic in a short amount of space.

That said, I do feel it’s fairly comprehensive and invite anyone to message me and I’ll gladly write a blog post explaining the topic in further detail.

I really enjoyed the process of writing a book. It was a lot of work with a lot of very late nights and patience on the part of my family with whom I’m very appreciative.

Purchasing MongoDB and PHP

You can purchase the book directly from O’Reilly in a non DRM format here.

You can purchase from Amazon here:


“I have already have read the book MongoDB: The Definitive Guide by Kristina Chodorow and Michael Dirolf . It doesn’t cover much on the PHP, but its a good book to learn about MongoDB and how it works in Depth. Once I saw the book, MongoDB and PHP by Steve Francia I was planning to buy it, and the time I got a chance to signup for the blogger review program by O’Reilly Media. Its a small book of 60 pages, but a good one. I will rate 7.5 / 10 , a good read for PHP Developers . If you wondered why the 2.5 is missing read on”  Full Review

It’s easier than you think to extend DevOps practices to SQL Server with Redgate tools. Discover how to introduce true Database DevOps, brought to you in partnership with Redgate


Published at DZone with permission of rouletteroulette rouletteroulette. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}