Download the PHP package luongtran/infusionsoft-php without Composer

On this page you can find all versions of the php package luongtran/infusionsoft-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package infusionsoft-php

Infusionsoft PHP SDK

Build Status Total Downloads Latest Stable Version

Version Notes

This version implements RESTful endpoints, a new version of Guzzle, and a restructured request handler.

Breaking Change

If you use the Orders or Products services, there are now two different classes handling each service - one for REST, one for XML-RPC. This version of the SDK will load the REST class by default. If you still need the XML-RPC class, pass 'xml' as an argument when requesting the object: $infusionsoft->orders('xml')'

Kudos to toddstoker and mattmerrill for their contributions to this release.

Install

Using the composer CLI:

Or manually add it to your composer.json:

Authentication

The client ID and secret are the key and secret for your OAuth2 application found at the Infusionsoft Developers website.

Making XML-RPC Requests

Making REST Requests

The PHP SDK is setup to allow easy access to REST endpoints. In general, a single result is returned as a Class representing that object, and multiple objects are returned as an Infusionsoft Collection, which is simply a wrapper around an array of results making them easier to manage.

The standard REST operations are mapped to a series of simple functions. We'll use the Tasks service for our examples, but the operations below work on all documented Infusionsoft REST services.

To retrieve all tasks:

To retrieve a single task:

To query only completed tasks:

You can chain where() as many times as you'd like, or you can pass an array:

To create a task:

Then update that task:

And finally, to delete the task:

Several REST services have a /sync endpoint, which we provide a helper method for:

This returns a list of tasks created or updated since the sync ID was last generated.

Dates

DateTime objects are used instead of a DateTime string where the date(time) is a parameter in the method.

Debugging

To enable debugging of requests and responses, you need to set the debug flag to try by using:

Once enabled, logs will by default be written to an array that can be accessed by:

You can utilize the powerful logging plugin built into Guzzle by using one of the available adapters. For example, to use the Monolog writer to write to a file:

Testing

Laravel 5.1 Service Provider

In config/app.php, register the service provider

Register the Facade (optional)

Publish the config

Set your env variables

Access Infusionsoft from the Facade or Binding

Lumen Service Provider

In bootstrap/app.php, register the service provider

Set your env variables (make sure you're loading your env file in app.php)

Access Infusionsoft from the Binding

Contributing

Please see CONTRIBUTING for details.

License

The MIT License (MIT). Please see License File for more information.


All versions of infusionsoft-php with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
ext-curl Version *
guzzlehttp/guzzle Version ~6.1
guzzle/guzzle Version ^3.9.2
lstrojny/fxmlrpc Version 0.10
luongtran/http-adapter Version 0.7.3
psr/log Version ~1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package luongtran/infusionsoft-php contains the following files

Loading the files please wait ....