Enabling MongoDB in PHP

Install PHP MongoDB driver on Ubuntu ( I’m using Ubuntu for my development with nginx and php 7.2) In order to use MongoDB we need php.2-mogondb driver to connect the MongoDB and PHP sudo apt install php7.2-mongodb There after check your php.info() and validate the extension is enabled on your environment.

How to setup composer properly in your Ubuntu

In order to install composer in your machine, you need to download it. move your current directory to /home/<username> If you already have .composer directory just removed it and uninstall all previous version. Then download the composer setup: php -r “copy(‘https://getcomposer.org/installer&#8217;, ‘composer-setup.php’);” php -r “if (hash_file(‘sha384’, ‘composer-setup.php’) === ’93b54496392c062774670ac18b134c3b3a95e5a5e5c8f1a9f115f203b75bf9a129d5daa8ba6a13e2cc8a1da0806388a8′) { echo ‘Installer verified’; } else…