PHPackages                             s1mple/infusionsoft-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. s1mple/infusionsoft-php-sdk

ActiveLibrary[API Development](/categories/api)

s1mple/infusionsoft-php-sdk
===========================

A s1mpler Infusionsoft SDK for PHP with Laravel 4.2 support.

v1.3(11y ago)1301MITPHPPHP &gt;=5.2.0

Since Sep 11Pushed 11y ago2 watchersCompare

[ Source](https://github.com/s1mple/infusionsoft-php-sdk)[ Packagist](https://packagist.org/packages/s1mple/infusionsoft-php-sdk)[ Docs](https://www.getoptimind.com)[ RSS](/packages/s1mple-infusionsoft-php-sdk/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (5)Used By (0)

s1mple Infusionsoft PHP SDK
===========================

[](#s1mple-infusionsoft-php-sdk)

Publish your config
-------------------

[](#publish-your-config)

`php artisan config:publish s1mple/infusionsoft-php-sdk`

Originally forked readme:
-------------------------

[](#originally-forked-readme)

[Novak Solutions](https://novaksolutions.com/?utm_source=github&utm_medium=readme&utm_campaign=homepage) created the *Infusionsoft PHP SDK* to make it easier to develop for the Infusionsoft platform. The SDK utilizes the official Infusionsoft API, but works around some of its [known gotchas](https://novaksolutions.com/infusionsoft-api-gotchas/?utm_source=github&utm_medium=readme&utm_campaign=gotchas).

Why use the Infusionsoft PHP SDK?
---------------------------------

[](#why-use-the-infusionsoft-php-sdk)

- **No dependencies.** If your server has PHP and cURL, then you are good to go!
- **Code completion.** We've added all the necessary PHPDoc comments so code completion will work in popular editors, like Eclipse and PhpStorm.
- **Automatically retries.** Automatically retries failed API calls when it is safe to do so (i.e., updates and deletes).
- **Automatically handles XML-RPC.** Your requests and responses are automatically encoded and decoded.
- **Automatically picks the right method.** Saving records is easier. The SDK will automatically pick whether to do an insert or an update based on whether you are working with a new or existing record.
- **Future safe!** The SDK will keep working, even if Infusionsoft removes a field in the future.

Fully Supported
---------------

[](#fully-supported)

The *Infusionsoft PHP SDK* is fully supported. If you find a bug or are having problems, [submit an issue](https://github.com/novaksolutions/infusionsoft-php-sdk/issues) and we'll fix it.

We also appreciate community contributions. To contribute: fork the SDK repo, make your changes, and submit a pull request.

Installation
------------

[](#installation)

We keep the `master` branch production ready. To install, simply clone the SDK into a convenient folder. For example:

```
git clone git@github.com:novaksolutions/infusionsoft-php-sdk.git
```

You'll also need to copy `Infusionsoft/config.sample.php` to `Infusionsoft/config.php`. Edit this file and add your app name and [API key](http://ug.infusionsoft.com/article/AA-00442).

Usage
-----

[](#usage)

To help you get started, we've created a screencast that will walk you through using the SDK to create a contact in your Infusionsoft app. You can find the video on YouTube: [Using the Novak Solutions SDK with the Infusionsoft API](http://youtu.be/I4NvbIKrE1E).

You can also find a bunch of real-world code samples in our GitHub wiki on the [Examples](https://github.com/novaksolutions/infusionsoft-php-sdk/wiki/Examples) page.

Your project will need to include `Infusionsoft/infusionsoft.php`, a bootstrapper that automatically loads any classes that are needed. For example:

```
