-
Notifications
You must be signed in to change notification settings - Fork 164
Compatibility with new PHP Mongo driver #223
Comments
i have it working right now using the following, go to where the genghis.php file is and do the following composer require alcaeus/mongo-php-adapter create new file eg index.php <?php
require 'vendor/autoload.php';
require 'genghis.php'; the package |
I have done exactly what you said and it's not working. |
I installed mongo-php-adapter, added if (!class_exists('Mongo', false)) { $alerts[] = array( 'level' => 'error', 'msg' => '<h4>Mongo PHP class not found.</h4> ' . 'Have you installed and enabled the <strong>PECL Mongo drivers</strong>?', ); } to if (!class_exists('MongoDB\Driver\Manager', false)) { $alerts[] = array( 'level' => 'error', 'msg' => '<h4>Mongo PHP class not found.</h4> ' . 'Have you installed and enabled the <strong>PECL Mongo drivers</strong>?', ); } to get rid of the warning message. Everything works. The performance using the alcaeus/mongo-php-adapter on top of the new mongodb driver+mongodb-php-library is also considerably worse than the legacy driver or the new mongodb driver+mongodb-php-library combination. Perhaps 3-4 times worse! However, for a web-based interface, not part of an application, it shouldn't matter too much. |
Alternatively, we built a new, more modern Web-based client for Mongo, inspired by Genghis: |
I haven't been able to find anything about this here, sorry if it's been asked before.
Any there any plans to support the new PHP Mongo driver in the PHP version of Genghis?
Thanks!
The text was updated successfully, but these errors were encountered: