seansch / Interspire by seansch

Interspire API Wrapper for Laravel 5
141
1
1
Package Data
Maintainer Username: seansch
Maintainer Contact: sean@loafbox.com (Sean Schoonover)
Package Create Date: 2015-05-13
Package Last Update: 2017-02-16
Language: PHP
License: MIT
Last Refreshed: 2025-04-28 15:06:05
Package Statistics
Total Downloads: 141
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 1
Total Forks: 1
Total Open Issues: 0

Interspire API Wrapper

Installation

First, pull in the package through Composer.

"require": {
    "seansch/interspire": "dev-master"
}

And then, if using Laravel 5, include the service provider within app/config/app.php.

'providers' => [
    'Seansch\Interspire\InterspireServiceProvider'
];

And, for convenience, add a facade alias to this same file at the bottom:

'aliases' => [
    'Interspire' => 'Seansch\Interspire\InterspireFacade'
];

Publish the config file app/config/interspire.php and edit with your details

php artisan vendor:publish

Usage

Returns bool based on success

    $result = Interspire::addSubscriberToList($email, $list_id, array $fields);
    $result = Interspire::deleteSubscriber($email, $list_id)
    $result = Interspire::isOnList($email, $list_id)
    $result = Interspire::getCustomFields($list_id)