MongoDB and PHP
Document-Oriented Data for Web Developers
Publisher: O'Reilly Media
Released: January 2012
Pages: 80

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
Table of Contents
Product Details
About the Author
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyMongoDB and PHP
 
4.0

(based on 4 reviews)

Ratings Distribution

  • 5 Stars

     

    (1)

  • 4 Stars

     

    (2)

  • 3 Stars

     

    (1)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

100%

of respondents would recommend this to a friend.

Pros

  • Easy to understand (3)
  • Helpful examples (3)
  • Well-written (3)

Cons

    Best Uses

    • Intermediate (3)
      • Reviewer Profile:
      • Developer (3)

    Reviewed by 4 customers

    Sort by

    Displaying reviews 1-4

    Back to top

     
    3.0

    For PHP developers exploring non-RDBMS

    By Thanasis Efthymiou

    from Athens, Greece

    About Me Data Miner, Quality Assurance Expert, Seasonal Developer, Systems Integrator

    Verified Reviewer

    Pros

    • Easy to understand
    • Industry References
    • Practical Thinking

    Cons

    • Not Extensive Examples
    • Pinpointed Audience

    Best Uses

    • Intermediate To Expert

    Comments about oreilly MongoDB and PHP:

    The way I see it, when you're called to write a book review, it's all about the reader's perception about how good it is – and that is very, very subjective. When it comes to programming books, then I guess it has a lot to do with the reader's own expertise, too.
    I've read some pretty nasty reviews about this book on Amazon and some pretty good reviews on oreilly.com. So, here are my thoughts.

    First of all, when I think of programming and/or databases books, I think of heavyweights. That's definitely not the case here. At 62 pages, this is more a white paper than it is a book. It is basically a white paper for experienced PHP developers who have seen a couple of NoSQL technologies or are haunted by the limitations of MySQL and need a few good reasons why they should switch to MongoDB. Thus, there are several MongoDB features introduced but there is hardly the attempt to teach how to use them or to explain them in detail; the text simply acts as a reminder that "this feature exists, go Google it to see how it works in detail".

    I have very little experience with PHP and decent experience with MongoDB. What I liked most is that I was able to understand almost everything PHP-wise; that is, apart from all references to the PHP frameworks out there, which should be very meaningful to all readers already using PHP. What I didn't like is that, not only I didn't really learn anything new about MongoDB, but there are a few parts that are already heavily outdated, too – but that is, of course, not the author's fault. A typical example is the all new aggregation framework introduced in MongoDB 2.2 which is missing. Additionally, I found its structure not to be optimal in the sense that bits and pieces of information about a given subject exists in a couple of places instead of having it all gathered in one spot.

    All in all, I think this book is targeted to very specific PHP developers with greater than average database know-how, who are trying to bypass the limitations of their current DB model. If you understand what sharding or eventually consistent mean and you are exploring the NoSQL (or even better, the non-RDBMS) space, then this book could help you. If you are a beginner with PHP or MongoDB, then there are a few other books that you could find much more useful than this.

    If I could, I would rate it 2.5 out of 5.

     
    5.0

    Excellent

    By d1ll1nger

    from Mansfield, England

    About Me Designer, Developer, Sys Admin

    Verified Reviewer

    Pros

    • Concise
    • Helpful examples
    • Well-written

    Cons

      Best Uses

      • Intermediate
      • Novice

      Comments about oreilly MongoDB and PHP:

      With big data systems becoming the standard for our industry today, it was only a matter of time before these two products were married together.

      The book is nicely written with a concise statement on each subject. The examples are just enough to satisfy and leaves the reader to explore further which is my personal preference. A perfect read for someone that is starting out with big data and NoSQL databases in mind.

      (1 of 1 customers found this review helpful)

       
      4.0

      Taking a look at MongoDB, great intro.

      By JuanB

      from Montevideo, Uruguay

      About Me Developer

      Verified Reviewer

      Pros

      • Easy to understand
      • Helpful examples
      • Well-written

      Cons

        Best Uses

        • Intermediate
        • Student

        Comments about oreilly MongoDB and PHP:

        The book "PHP and MongoDB by Steve France" presents the document-oriented database MongoDB and its relationship with the PHP language, is also a very good introduction to non-relational databases, focusing on the causes that gave rise to MongoDB, as well as the gaps found in the ORM's and the relational databases when you need to work with objects in an efficient and robust way.

        The author introduce us to MongoDB in a clear and simple way, describing its objectives, components, features and philosophy.
        Then he focuses on the relationship between MongoDB and PHP, from that moment, the book changes its structure to become a user guide showing how to install and configure the database and the environment to work with MongoDB through PHP.

        He presents each MongoDB feature, from the most basic aspects to the advanced features with PHP code samples, which are explained in detail and finally highlights some PHP libraries and tools that can help us to develop applications using MongoDB.

        I want emphasize the fact that the author is a member of the team that developed MongoDB, for me it is highly relevant.
        My overall evaluation is good, although I had read other documentation on NoSQL databases, I found this book very well explained and I think MongoDB is an excellent gateway to the world of non-relational databases.
        People who intend to read this book must have knowledge of PHP and object-oriented programming in order to take full advantage from it.

        Finally, I must say that after finishing the book I was pleasantly surprised with the features and possibilities of MongoDB, since its implementation in PHP is relatively easy to achieve so I can start testing its functionality almost immediately.

         
        4.0

        Good book for PHP

        By Hari K T

        from Kerala, India

        About Me Developer

        Verified Reviewer

        Pros

        • Accurate
        • Concise
        • Easy to understand
        • Helpful examples
        • Well-written

        Cons

        • Installation

        Best Uses

        • Expert
        • Intermediate
        • Novice
        • Student

        Comments about oreilly MongoDB and PHP:

        If you are considering MongoDB for your next PHP project this book is a good read to learn MongoDB. Well written , though more examples are welcome and you should play with it also, not just read it. Installation of MongoDB is a missing chapter though its easy atleast in GNU/Linux, never used in Windows so not sure about it :-) , you can read review at http://harikt.com/mongodb-and-php-steve-francia-oreilly

        Displaying reviews 1-4

        Back to top

         
        Buy 2 Get 1 Free Free Shipping Guarantee
        Buying Options
        Immediate Access - Go Digital what's this?
        Ebook: $14.99
        Formats:  DAISY, ePub, Mobi, PDF
        Print & Ebook: $21.99
        Print: $19.99