Building the application

The first step in building the application is to make sure that the underlying programming driver infrastructure is in place. This has already been covered in detail in Chapter 4, Developing with Program Language Drivers. Here is a brief overview of the steps to take:

  1. Install PHP X.Y and the phpX.Y-dev library, where X.Y is the target version (for example, PHP 7.2)
  2. Install PECL by installing php-pear
  3. Install the PHP mongodb extension using pecl
  4. Install the PHP MongoDB Library using the composer require mongodb/mongodb command

Once the programming language driver infrastructure is in place, we can turn our attention to application development. The objective in this illustration is to provide a way to view and add ...

Get MongoDB 4 Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.