Mongodb plugin for cakephp 2.10 which will work on php7.4 - mongodb

my old application was on cakephp2.5 , php 5.6 mongodb ichikaway/cakephp-mongodb, i have updated it to cakephp2.10 and php7.4 but this plugin is not working as new php-mongodb driver is not supporting to it. is there any other plugin which will work on cakephp2.5 or is there any other way to make it work.
Thanks

Hi i have found workaround for it Mongo PHP Adapter
The Mongo PHP Adapter is a userland library designed to act as an adapter
between applications relying on ext-mongo and the new driver (ext-mongodb).
It provides the API of ext-mongo built on top of mongo-php-library, thus being
compatible with PHP 7.
Goal
This library aims to provide a compatibility layer for applications that rely on
libraries using ext-mongo, e.g.
Doctrine MongoDB ODM, but want to
migrate to PHP 7 on which ext-mongo will not run.
You should not be using this library if you do not rely on a library using
ext-mongo. If you are starting a new project, please check out
mongodb/mongodb.

Related

How to connect zend - laminas with MongoDB

I am new to Zendlaminas and MongoDB.I know PHP. I want to connect the laminas with MongoDB. I do no from which file i need to start to config.For the whole day i am stuck here. Can anyone guide here.
I have installed Zend Laminas
Using a Apache2 server
Installed MongoDB as well
OS : Ubuntu
Well, there's this. I think there's a php-mongodb package for Ubuntu that will install PHP's MongoDb extension.
It might be overkill for your needs, but I suggest using Doctrine ORM with MongoDB. There's a bit of a learning curve (ORMs in general are complex) but I find it a nice clean way to develop once it's set up.

sync elasticsearch and mongodb

Hi I am trying to transport data from mongodb to elasticsearch. I have done it by following this tutorial. It is working for elasticsearch version 1.X. But when I tried to do it with version 5.X. plug-ins can't be installed. Can someone help me to figure out a way to do it with version 5.X.
These are the two plugins.
$ES_HOME/bin/plugin -install elasticsearch/elasticsearch-mapper-attachments/1.6.0
plugin --install com.github.richardwilly98.elasticsearch/elasticsearch-river-mongodb/2.0.9
In elastic 5.x+ the installation commands are different. The mapper attachment library you're trying to install has an example here
bin/plugin install elasticsearch/elasticsearch-mapper-attachments/3.1.2
The other library does not mention support of Elastic > 2.x, and its last commit was well before 5.x existed.
If you need to use that exact library, I don't believe you will be able to use anything > 2.x

Specify PHP version with dotcloud

I have an application that requires PHP 5.3. Is it possible to specify what version of PHP to run?
It's not currently possible to specify the version of PHP in the PHP and PHP-Worker services. The current version (as of this posting) is 5.4.6-2~lucid+1
If you need a specific version of PHP, it may be possible to use a custom recipe to download and install the specific version your looking for. The following project is an example of such a custom service.
https://github.com/kencochrane/php-on-dotcloud

Is possible to use IBM DB2 with JRuby on rails?

In DB2 Version 9.7 is said:
The IBM_DB Ruby driver and Rails adapter are not supported on JRuby
The IBM_DB adapter is not supported on JRuby.
The IBM_DB adapter is not supported on JRuby because (as stated in the
JRuby Wiki, "Getting Started"): "Many Gems will work fine in JRuby,
however some Gems build native C libraries as part of their install
process. These Gems will not work in JRuby unless the Gem has also
provided a Java equivalent to the native library." For more
information, see http://kenai.com/projects/jruby/pages/GettingStarted.
The IBM_DB adapter relies on the IBM_DB Ruby driver (C extension) and
the IBM® Data Server Driver for ODBC and CLI to access databases on
IBM data servers. Alternatively, you can either use the regular C
implementation of Ruby, or use JDBC_adapter to access databases.
Has anyone knew if this is fixed in the new versions?Also, is it possible to use JDBC_adapter with JRuby?
I haven't test it but, according to this https://github.com/jruby/activerecord-jdbc-adapter
Activerecord-jdbc-adapter is a database adapter for Rails’ ActiveRecord component that can be used with JRuby. It allows use of virtually any JDBC-compliant database with your JRuby on Rails application.
And the corresponding gem has a Java version. https://rubygems.org/gems/activerecord-jdbc-adapter/versions/1.0.3-java
Regarding your other question, if IBM_DB is fixed in the new versions?
Ithink is not, according to the documentation until JRuby and ActiveRecord-JDBC adapter ripen it wont work.
I found and IBM docummentation that says that can be consider an arrangement in ActiveRecord-JDBC adapter, which can emulate the previous administration providing IBM_DB adapter.
http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/index.jsp?topic=%2Fcom.ibm.db2.luw.apdv.ruby.doc%2Fdoc%2Fc0052771.html

Plugins for APEX 3.2

Are there any plugins for Application Express 3.2? Every plugin I can find requires APEX 4.0 at a minumum.
I was specifically interested in a plugin that would allow multiple file uploads such as this one
Per company policy, I am not able to upgrade to a higher version of APEX.
The APEX plug-in architecture was introduced in version 4.0. Prior to that, plug-ins were not available in APEX.