aglipanci/interspire

Interspire API Intergration Made Easy
207 2
Install
composer require aglipanci/interspire
PHP:>=5.3.0
License:GPL-3.0+
Last Updated:Oct 23, 2014
Links: GitHub  ·  Packagist
Maintainer: aglipanci

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', 'jsmith@gmail.com', 1);

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

Interspire::deleteSubscriber('jsmith@gmail.com');

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

Interspire::isOnList('jsmith@gmail.com', 2)

Related Packages

wobeto/twitter

Laravel 4 Service Provider to interact with twitter account, like return a colle...

135 1
andhikamaheva/date

A date library to help you work with dates in different languages

13 1
vlados/laravel-blade-crawler-detect

Boost Lighthouse and PageSpeed scores by hiding cookie banners, chat widgets and...

5,439 0
maystro/filament-popup-modal

A comprehensive modal dialog system for FilamentPHP with progress bars, callback...

7 1