Download the PHP package woodynadobhar/infusionsoft without Composer
On this page you can find all versions of the php package woodynadobhar/infusionsoft. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download woodynadobhar/infusionsoft
More information about woodynadobhar/infusionsoft
Files in woodynadobhar/infusionsoft
Package infusionsoft
Short Description A port of Infusionsoft's PHP SDK to composer package for Laravel 4
License
Informations about the package infusionsoft
PHP iSDK for Laravel 4
This is a port of Infusionsoft's PHP SDK to Laravel 4 inspired by a similar project created by tshafer.
Motivation
Infusionsoft's API is business critical and being a control freak I wanted to take ownership over merging in future updates. I'll also be writing a db based logging system to track execution time on a per API call basis.
Installation Instructions
Install the package using composer and add the following entry to the array of service providers found in app/config/app.php:
'WoodyNaDobhar\Infusionsoft\InfusionsoftServiceProvider',
Also, add the facade alias to aliases array found in the same file:
'Infusionsoft' => 'WoodyNaDobhar\Infusionsoft\Facades\Infusionsoft',
You'll also need to publish the config file to your app/config/ directory by running the following from command line in your project root:
php artisan config:publish woodynadobhar/infusionsoft
This will copy the config file to app/config/packages/woodynadobhar/infusionsoft/ where you must set up your Infusionsoft application name and API key.
Usage
There are two ways of using this package. The first is to instantiate the iSDK object then run its methods:
Add the following to your app/routes.php and visit http://www.yourdomain.com/infusionsoft-test
The second way is to instantiate the iSDK object then use Infusionsoft::execWithLog() to run the desired method:
Using this second method is beneficial if you plan to use the API transaction time logging feature (coming soon) without needing to modify your code in the future. As of now Infusionsoft::execWithLog() just runs the requested method without any logging.