In Chapter 3, Using the Mongo Shell, you learned how to formulate basic CRUD operations using the JavaScript functions which the shell executed. In this chapter, you will learn how the same sort of operations can be performed using the PHP MongoDB driver. In addition, this chapter summarizes external PHP libraries and the integration of the Mongo PHP driver with various PHP frameworks.
The reason why PHP was chosen is because it is one of the most widely used web programming languages and is easy to understand, especially if you have a background in C language. Other popular languages such as Java, JavaScript, and Python are already well-documented on the MongoDB website (https://docs.mongodb.com/ecosystem/drivers/) and have plenty of examples, whereas this is not the case for PHP.
The version of PHP featured in this chapter is PHP 7.2...