I am running a docker machine and phpinfo() shows Mongodb extension as enabled.
When I run:
composer require mongodb/mongodb
From my local machine, I see this error message:
mongodb/mongodb 1.7.1 requires ext-mongodb ^1.8 -> the requested PHP extension mongodb is missing from your system.
Additional information: when I SSH the docker container and executed this command:
php -i | grep -C4 -i "mongodb.*version"
I get back MongoDB extension version => 1.8.1
Any ideas on how to solve this issue?
You have the dependencies installed in docker, just not on your local machine. If you want to install the dependencies also locally, you will have to either install the extension yourself or run the composer command with the --ignore-platform-reqs flag to get rid of the error.