# PHP API to create a new account

**URL:** <https://integration.keap.com/t/php-api-to-create-a-new-account/43613>\
**Category:** API Q&A\
**Created:** [June 14, 2018, 7:53pm UTC](https://integration.keap.com/t/php-api-to-create-a-new-account/43613 "2018-06-14T19:53:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mario\_Drolet](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@Mario\_Drolet](https://integration.keap.com/u/Mario_Drolet)\
**Post date:** [June 14, 2018, 7:53pm UTC](https://integration.keap.com/t/php-api-to-create-a-new-account/43613/1 "2018-06-14T19:53:31Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![TomScott](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/tomscott/32/67_2.png) [@TomScott](https://integration.keap.com/u/TomScott)\
**Post date:** [June 14, 2018, 9:58pm UTC](https://integration.keap.com/t/php-api-to-create-a-new-account/43613/2 "2018-06-14T21:58:02Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Mario\_Drolet](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@Mario\_Drolet](https://integration.keap.com/u/Mario_Drolet)\
**Post date:** [June 15, 2018, 6:10pm UTC](https://integration.keap.com/t/php-api-to-create-a-new-account/43613/3 "2018-06-15T18:10:36Z")

</div>

Hi Tom,

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

> **[API-Sample-Code/PHP at master · infusionsoft/API-Sample-Code](https://github.com/infusionsoft/API-Sample-Code/tree/master/PHP)**
>
> master/PHP

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

---

<div class="post-metadata">

**Author:** ![TomScott](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/tomscott/32/67_2.png) [@TomScott](https://integration.keap.com/u/TomScott)\
**Post date:** [June 19, 2018, 12:49am UTC](https://integration.keap.com/t/php-api-to-create-a-new-account/43613/4 "2018-06-19T00:49:12Z")

</div>

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:

> **[GitHub - infusionsoft/infusionsoft-php: PHP client library for the...](https://github.com/infusionsoft/infusionsoft-php)**
>
> PHP client library for the Infusionsoft API. Contribute to infusionsoft/infusionsoft-php development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![Mario\_Drolet](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@Mario\_Drolet](https://integration.keap.com/u/Mario_Drolet)\
**Post date:** [June 19, 2018, 12:09pm UTC](https://integration.keap.com/t/php-api-to-create-a-new-account/43613/5 "2018-06-19T12:09:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Surya\_Kundu](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/surya_kundu/32/8947_2.png) [@Surya\_Kundu](https://integration.keap.com/u/Surya_Kundu)\
**Post date:** [December 5, 2018, 4:45pm UTC](https://integration.keap.com/t/php-api-to-create-a-new-account/43613/6 "2018-12-05T16:45:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pagedesigner](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/pagedesigner/32/2769_2.png) [@pagedesigner](https://integration.keap.com/u/pagedesigner)\
**Post date:** [December 14, 2018, 1:02pm UTC](https://integration.keap.com/t/php-api-to-create-a-new-account/43613/7 "2018-12-14T13:02:50Z")

</div>

you can find example here:  
REST: [Keap REST API](https://developer.infusionsoft.com/docs/rest/#!/E-Commerce/createOrderUsingPOST)  
PHP: [xml-rpc - Keap Developer Portal](https://developer.infusionsoft.com/docs/xml-rpc/#order)
