LaravelPackages.net
Acme Inc.
Toggle sidebar
aglipanci/interspire

Interspire API Intergration Made Easy

207
2
About aglipanci/interspire

aglipanci/interspire is a Laravel package for interspire api intergration made easy. It currently has 2 GitHub stars and 207 downloads on Packagist. Install it with composer require aglipanci/interspire. Discover more Laravel packages by aglipanci or browse all Laravel packages to compare alternatives.

Last updated

laravel-interspire

SensioLabsInsight

Interspire API Intergration Made Easy

Installation

Add laravel-interspire to your composer.json file:

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

Use composer to install this package.

$ composer update

Registering the Package

Register the service provider within the providers array found in app/config/app.php:

'providers' => array(
	// ...
	
	'Aglipanci\Interspire\InterspireServiceProvider',
)

Add an alias within the aliases array found in app/config/app.php:

'aliases' => array(
	// ...
	
	'Interspire'     => 'Aglipanci\Interspire\Facades\Interspire',
)

Configuration

Create configuration file for package using artisan command

$ php artisan config:publish aglipanci/interspire

And edit the config file with your Interspire API URL, Username and Token.

Usage

Basic usage

To add a new Subscriber to a list you should add name, surname, email and the list id (which you get from interspire);

Interspire::addSubscriberToList('John', 'Smith', '[email protected]', 1);

To delete an existing Subscriber you need only the email address:

Interspire::deleteSubscriber('[email protected]');

To check if a subscriber is already on a specific list:

Interspire::isOnList('[email protected]', 2)

Star History Chart