php-odoo-api-client icon indicating copy to clipboard operation
php-odoo-api-client copied to clipboard

Actual PHP 8 support

Open jakewhiteley opened this issue 1 year ago • 7 comments

Hi I just tried to install the most recent version but couldn't:

 - ang3/php-odoo-api-client[v7.0.3, ..., v7.0.7] require ang3/php-xmlrpc-client ^1.0.2 -> satisfiable by ang3/php-xmlrpc-client[v1.0.2, v1.0.3]. 
    - ang3/php-odoo-api-client[v7.0.0, ..., v7.0.2] require php ^7.2 -> your php version (8.2.13) does not satisfy that requirement.
    - ang3/php-xmlrpc-client v1.0.2 require php ^7.2 -> your php version (8.2.13) does not satisfy that requirement.
    - ang3/php-xmlrpc-client v1.0.3 requires ext-xmlrpc * -> it is missing from your system. Install or enable PHP's xmlrpc extension.
    - Root composer.json requires ang3/php-odoo-api-client ^7.0 -> satisfiable by ang3/php-odoo-api-client[v7.0.0, ..., v7.0.7].

xmlrpc has been abandoned: https://pecl.php.net/package/xmlrpc, so I was wondering if you had plans to rewrite php-xmlrpc-client to work without ext-xmlrpc?

I had previously built an Odoo service (much simpler than yours) and had used https://github.com/gggeek/phpxmlrpc to get around the issue of ext-xmlrpc being abandonware.

Could this repo allow the user to specify a different XMLRPC client (such as the above phpxmlrpc library) as long as it followed a provided interface?

jakewhiteley avatar Feb 23 '24 14:02 jakewhiteley

I'd be very pleased too if there would be xml-rpc client update for this.

SampoVirmasalo avatar Feb 26 '24 10:02 SampoVirmasalo

Hi,

The next major version won't use XMLRPC because of PHP 8. You have to know that this extension is not provided by default in PHP 8+. Moreover, some deployment platforms do not provide it too (like platform.sh : https://docs.platform.sh/languages/php/extensions.html).

The version 8 of the client is about to be released with JSONRPC calls (branch 8.x). I suggest you to prepare your code from that branch. The only one extension needed is json.

I let this issue opened to write a XMLRPC "transport" in version 8 for legacy purposes. ;)

Ang3 avatar Feb 26 '24 11:02 Ang3

Hi! Do you have any ideas of the schedule for version 8?

Can't wait! ✌️

svirmasalo avatar Feb 26 '24 11:02 svirmasalo

Hi any updates about this?

somegooser avatar Aug 06 '24 09:08 somegooser

Hello! Any updates on this?

svirmasalo avatar Jan 07 '25 09:01 svirmasalo

Hi @Ang3

couldn't find any release for the 8.x branch.

Could you please provide some information? Alternatively, should we consider looking for another repository if this package is no longer actively maintained?

somegooser avatar Apr 28 '25 14:04 somegooser

Hello! Any updates on this?

sgerardiello avatar Jun 17 '25 15:06 sgerardiello