Synopses & Reviews
What would happen if you optimized a data store for the operations application developers actually use? Youd arrive at MongoDB, the reliable document-oriented database. With this concise guide, youll 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 PHPs community tools and libraries, and why theyre valuable
- Work with regular expressions, aggregation, MapReduce, replication, and sharding
Synopsis
Author Steve Francia provides readers with a guide to using MongoDB with PHP. He briefly introduces the reader to MongoDB and why its a good match for PHP. Once the foundation is laid, learn how to connect to the database, perform CRUD operations, and perform queries. More advanced topics are covered next, such as mapreduce, gridfs and sharding. Readers will also discover the community tools and libraries available in PHP, along with the reasons to use them.
About the Author
Steve is the Chief Solutions Architect at 10gen where leads the public side of the engineering organization. Prior to 10gen Steve led OpenSky to become the first ecommerce site powered by MongoDB and one of the first PHP sites one of the first PHP sites backed by MongoDB. His previous roles include CIO/COO at Portero, VP of Development at Takkle and Founder & CTO of Supernerd. Steve loves open source. He has contributed to dozens of open source projects including MongoDB, Doctrine, Symfony2, Magento and Zoop and has started a few of his own. Steve holds a BA from Brigham Young University, where among other things, he created and taught a course on dynamic web development.
Table of Contents
Preface; Conventions Used in This Book; Using Code Examples; Safari® Books Online; How to Contact Us; Chapter 1: Why Mongo?; 1.1 The Problem of Objects and Relational Data Structures; 1.2 The Problem with ORMs; 1.3 MongoDB, Optimized for Operation; Chapter 2: PHP, MongoDB, and You; 2.1 Installing the Driver on Linux or MacOS X; 2.2 Installing the Driver on Windows; 2.3 Connecting to a Database; 2.4 The Basics (CRUD Operations); 2.5 The MongoDB Shell; 2.6 Working with Sets; 2.7 Working with Indexes; 2.8 Database References; 2.9 Dates and Times; Chapter 3: Advanced MongoDB; 3.1 Regular Expressions; 3.2 Aggregation Commands; 3.3 findAndModify; 3.4 GridFS; 3.5 Replication; 3.6 Sharding; 3.7 Gotchas; Chapter 4: PHP Libraries and Tools; 4.1 Object Document Mappers (ODM); 4.2 Tools; 4.3 Frameworks; Chapter 5: Conclusion;