Use different libraries than Nextcloud within an App

I want to use different versions of the same library in an app, that Nextcloud uses for it’s core. Is that possible and if how?

To explain why I need to do that:
Our company has a huge interest for Nextcloud to support OpenStack Switf KeyStone v.3. The v2 Endpoint is deprecated since several years and the library Nextcloud uses to make the API Calls is dicontinued and rereleased as php-opencloud/openstack.

The rereleased Version is build on the guzzle 6.* which is incompatible with the version 5.* which is used by Nextcloud.

To get back to my initial question. Is there any possibility to use both, guzzle 6.* und guzzle 5.* in the same Nextcloud Installation?

Thanks in advance.

Disclamer I’m not a PHP Developer so my question may sound dumb to you.

You can’t because it’s not possible in php

Disclamer I’m not a PHP Developer so my question may sound dumb to you.

Actually, not a dumb question at all if you’re coming from another language like Java :wink: I guess what you’re looking for is something like OSGi for Java but for PHP. Unfortunately, as Tar said, it’s not available afaik.