title: Install mongodb on mac os 10.15 for php7
body: <p>I have installed mongodb on my mac Catalina 10.15. I have php7.3 version installed as well. Now, I want to use the mongoClient() class with PHP. I tried <code>composer require mongodb/mongodb</code> but it says that the mongodb extension is missing :</p>
  
  <pre><code>Using version ^1.5 for mongodb/mongodb
  ./composer.json has been updated
  Loading composer repositories with package information
  Updating dependencies (including require-dev)
  Your requirements could not be resolved to an installable set of packages.
  
  Problem 1
  - mongodb/mongodb 1.5.1 requires ext-mongodb ^1.6 -&gt; the requested PHP extension mongodb is missing from your system.
  - mongodb/mongodb 1.5.0 requires ext-mongodb ^1.6 -&gt; the requested PHP extension mongodb is missing from your system.
  - Installation request for mongodb/mongodb ^1.5 -&gt; satisfiable by mongodb/mongodb[1.5.0, 1.5.1].
  
  To enable extensions, verify that they are enabled in your .ini files:
  - /etc/php.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
  
  Installation failed, reverting ./composer.json to its original content.
  </code></pre>
  
  <p>So I tried to install the extension for php using <a href="https://www.php.net/manual/fr/mongodb.installation.homebrew.php" rel="nofollow noreferrer">the php doc</a> and I get this error :</p>
  
  <pre><code>pear/install/mongodb/php_phongo.c  -fno-common -DPIC -o .libs/php_phongo.o
  /private/tmp/pear/install/mongodb/php_phongo.c:22:10: fatal error: 'php.h' file not found
  #include &lt;php.h&gt;
            ^~~~~~~
  1 error generated.
  make: *** [php_phongo.lo] Error 1
  ERROR: `make' failed
  </code></pre>
  
  <p>Any help ?</p>