MongoDB-Rox / phpMoAdmin-MongoDB-Admin-Tool-for-PHP

MongoDB administration tool for PHP built on a stripped-down version of the Vork high-performance framework
http://www.phpMoAdmin.com
GNU General Public License v3.0
187 stars 86 forks source link

Doesn't work with MongoDB extension on PHP7. #29

Open hpolonkoev opened 7 years ago

hpolonkoev commented 7 years ago

Hello guys,

Thank you for your efforts developing the tool. Unfortunately it doesn't work on my current local configuration. I am getting message

PHP cannot access MongoDB, you need to install the Mongo extension for PHP.

Configuration:

The extension for PHP 7 I am using is mongodb.so (http://php.net/manual/en/mongodb.installation.pecl.php) After going through your code, it looks like you are only testing if the mongo extension is available. The second test you doing is on the MongoClient and Mongo classes. MongoClient is deprecated. (http://php.net/manual/en/class.mongoclient.php) And I am not sure about Mongo, couldn't figure out how to install it.

If you could update your tool to support the latest MongoDB extension and the latest class http://php.net/manual/en/class.mongodb-driver-manager.php, I would apreciate it.

Thanks.

MongoDB-Rox commented 7 years ago

This is on the to-do list. Supporting the new MongoDB extension is a big job as the entire syntax has changed, and the only supported-method to continue to use the (substantially more user-friendly) legacy-syntax is to include a userland PHP library, which is not an ideal option for phpMoAdmin since one of the key ease-of-use factors is that it is contained in a single-file.

hpolonkoev commented 7 years ago

@MongoDB-Rox Thanks and good luck!

cytopia commented 7 years ago

I would also vote to go for the new php extension.

nhanledev commented 7 years ago

Any update guys? I have the same problem and hope this awesome tool can run on PHP 7.

Santana1053 commented 7 years ago

+1

re8260 commented 6 years ago

+1

morozovsk commented 6 years ago

+1

mpql commented 6 years ago

Honestly, having libraries isn't a big deal. 2 files is better than 0 working files, and plenty of upstanding projects include libraries -- better to use something tried and true than unnecessarily reinvent the wheel. Besides, it's the recommended method from mongodb themselves.

In any case, the joke with Debian is that while secure, "your packages are outdated by a year or more." Current Debian stable has us on PHP7, and if we're talking ease-of-use, dropping and extracting an archive is a lot easier than the thing not working. :P

(Best of luck with everything!)

X25guru commented 5 years ago

still doesnt work with php 7. Mark this as a dead project.

simonschaufi commented 5 years ago

As this project is dead, I can recomment some desktop clients:

mpql commented 5 years ago

That is really helpful, thank you, @simonschaufi!

niccottrell commented 5 years ago

There's always MongoDB Compass Community version if you want an officially supported tool

ali-khalili commented 4 years ago

I forked the project here to make it work with PHP7 and mongodb/mongodb package (so, one requires to install package with composer). The overall functionalities seem to work now.

SamuelTallet commented 4 years ago

Here are some alternatives to phpMoAdmin: