Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

logikgp's avatar

Installing the PHP 7 MongoDB Client/Driver

Hello,

I am very eager to start working with PHP 7 however one issue is getting in the way... I primarily use mongodb for the database and the problem is I don't know how to install the driver/client for PHP 7.

My current installation is PHP 5.6 and on my mac 'brew install php56-mongo' does the trick.

Can anyone recommend how I can get this working on my mac or an ubuntu install?

Thanks in advance and much appreciated!

0 likes
1 reply
zakhttp's avatar
zakhttp
Best Answer
Level 1

Hello @logikinc, i faced the same issue but i managed to install it, i created a git repo containing a bash script to automate the process, https://github.com/zakhttp/Mongostead7.git Please make sure to change permission of the file to be able to execute it using the command: sudo chmod +x mongoHomestead7.sh Cheers!

Please or to participate in this conversation.