DZone
Database Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Database Zone > Book Review: MongoDB and PHP

Book Review: MongoDB and PHP

Eric Genesky user avatar by
Eric Genesky
·
Apr. 19, 12 · Database Zone · Interview
Like (0)
Save
Tweet
3.82K Views

Join the DZone community and get the full member experience.

Join For Free

despite having been toying with mongodb and php for quite a while, i've only just picked up and read the "mongodb and php" by steve francia , published by o'reilly (disclaimer: i've collaborated with steve on a few articles and he sent me a copy of the book to read)

my first impressions are that this isn't a heavy book. i don't have the physical version but i'll have to look out for it at the next o'reilly stand that i see. that said, it covered everything i think you need to get your php application using mongodb and manages to throw in good chunk of advice about what to look out for when you do implement something in the real world.

the book warms up its php audience by slating both ruby on rails and orms in general, which does let you know where the author stands on those topics! mongodb is introduced with an intelligent comparison to memcache, which is a great way of framing the problem in a way we're more likely to be familiar with, and the book also strikes comparisons with mysql which i liked a lot.

the tone of the book is quite informal and approachable, the sample data raised a smile when i saw that we were storing "superpowers" for different users in the collection :) much as i agree with steve on many things, seeing him assert that developers should understand database indexes made me feel as if i was among friends, even though i wasn't familiar with all of the mongodb elements that were shown. this book also does a great job of deferring to other resources where that is appropriate; in particular where some features of mongodb will change rapidly and the online documentation is well-maintained.

plenty of the more advanced concepts were also covered, and with nice examples. mongodb has both indexes and an explain function so we can work on the way it performs - very valuable knowledge as we move to a new platform and get to know it. the basics of querying and designing schemas were covered, along with the aggregate functions offered by mongodb and an overview of map reduce. being able to do these operations on nested arrays is slightly counter-intuitive if you're used to relational data, but the book includes examples on doing so.

there is no hiding from the very lovely, very technical, features available in mongodb and although this book doesn't drill into all the possible use cases of each one, it does cover some advanced topics such as sharding and gridfs which was completely new to me. steve shows his hands-on experience with his words of warning on avoiding request injection in mongodb, and also gives a brief showcase of some of the abstraction layers and other community-origin tools that have already sprung up around the mongodb ecosystem.

overall i thought the book was light and digestible, it was upbeat to read and i came away feeling empowered to put mongodb into my php projects in new ways. making a complex topic sound encouraging isn't always easy so that's quite an achievement!

MongoDB Book PHP

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

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Debugging Deadlocks and Race Conditions
  • How to Generate Fake Test Data
  • How to Determine if Microservices Architecture Is Right for Your Business
  • Java: Why Core-to-Core Latency Matters

Comments

Database Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo