PHP API to create a new account

I am looking at the PHP API from GitHub and when including the xmlrpc-2.0 library I get the following error, Parse error: syntax error, unexpected ‘new’ (T_NEW) in lib\xmlrpc.inc on line 595
Would you be able to point me in the right direction in resolving this issue.

Good afternoon, Mario!

Would you be able to provide a link to the PHP SDK you are asking about? There are several in use, published by various parties.

Hi Tom,

Thanks for the reply, this is the github repository linked from the InfusionSoft API examples.

Let me know if there is a more updated API sample that I can reference.

Those samples are unfortunately far out of date. We do have expanded samples on our backlog to get out, but I don’t have an example I can point you to.

The PHP SDK that we publish can be found here:

Thank you for the link to the API, greatly appreciated.

Can anyone please provide me any example codes for order creating with latest PHPSDK?

you can find example here:
REST: Keap REST API
PHP: xml-rpc - Keap Developer Portal