I am using PHP 7.1.9 and I had this problem. Solving it, uninstalling and reinstalling mongodb/mongodb
composer remove mongodb/mongodb composer require mongodb/mongodb
Also, if you are using Dreamweaver, do not do this to put the vendor folder in a copy of the server.
After installation, I can now use MongoDB\Client .
mongodb API version 1.3, extension Mongodb 1.4
source share