An easy to use SDK for Infusionsoft's API (REST API)
novaksolutions/infusionsoft-rest-php-sdk is a Laravel package for an easy to use sdk for infusionsoft's api (rest api).
It currently has 1 GitHub stars and 188 downloads on Packagist (latest version v0.0.1-alpha).
Install it with composer require novaksolutions/infusionsoft-rest-php-sdk.
Discover more Laravel packages by novaksolutions
or browse all Laravel packages to compare alternatives.
Last updated
We are VERY open and appreciate contributions. Please try to follow our existing architecture, but we are always grateful for PRs, even if they just give us a possible solution to a problem.
Please do, although bugs with bug fix PRs are appreciated more.
There are two parts, first you need to get an OAuth access_token then you can use the REST client and model.
(This assumes you already have the access_token)
use NovakSolutions\Infusionsoft\Model\Contact;
Registry::init();
#contact = new Contact();
$contact->given_name = 'Joey';
$contact->save();
(New stuff will go here...)
The SDK is designed using PHP traits. This allows for quick creation of new services and models with extremely DRY code.
There are three main seperations of the API.
The REST client and model allows you to work exclusively with objects and be ignorant of the REST api itself. This allows you to focus on what you need to do and not how the API works.
The SDK is designed to be pluggable, and easily integrated with your project. Most people already have a system for OAuth in their app, by seperating the OAuth code from the REST Client and Model you can easily inject your own auth_token provider to integrate with your existing OAuth code.
The "Registry" is how we maintain IOC, it is a very simple implementation. You call init() it structures everything, and then you can replace things as needed. We wanted to keep it as simple to use as possible so IoC purists may balk and complain but it is simple, and does what we need with zero learning curve.