2017 © Pedro Peláez
 

library pg-selligent

ZF2 module for Selligent Individual API

image

earlhickey/pg-selligent

ZF2 module for Selligent Individual API

  • Tuesday, July 29, 2014
  • by earlhickey
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

PgSelligent

ZF2 module for Selligent Individual API, (*1)

Installation

Main Setup

By cloning project

  1. Install the zf2-selligent ZF2 module by cloning it into ./vendor/.
  2. Clone this project into your ./vendor/ directory.

With composer

  1. Add this project in your composer.json:, (*2)

    "require": {
        "earlhickey/pg-selligent": "1.*"
    }
    
  2. Now tell composer to download PgSelligent by running the command:, (*3)

    $ php composer.phar update
    

Post installation

  1. Enabling it in your application.config.php file., (*4)

    <?php
    return array(
        'modules' => array(
            // ...
            'PgSelligent',
        ),
        // ...
    );
    
  2. Copy ./vendor/earlhickey/pg-selligent/config/pg-selligent.global.php.dist to ./config/autoload/pg-selligent.global.php and change the values as desired.

Usage

  1. Subscribe, (*5)

    //  create recipient
    $recipient = new \stdClass();
    $recipient->firstname = 'John';
    $recipient->lastname = 'Doe';
    $recipient->gender = '';
    $recipient->dateOfBirth = '';
    $recipient->email = 'johndoe@domain.com';
    
    // Selligent email marketing opt-in
    $subscribe = $this->selligent()->subscribe($recipient);
    
  2. Unsubscribe, (*6)

    //  create recipient
    $recipient = new \stdClass();
    $recipient->email = 'johndoe@domain.com';
    
    // Selligent email marketing opt-out
    $unsubscribe = $this->selligent()->unsubscribe($recipient);
    

The Versions

29/07 2014

dev-master

9999999-dev https://github.com/earlhickey/PgSelligent

ZF2 module for Selligent Individual API

  Sources   Download

BSD-3-Clause

The Requires

 

zf2 pg13 selligent

29/07 2014

dev-development

dev-development https://github.com/earlhickey/PgSelligent

ZF2 module for Selligent Individual API

  Sources   Download

BSD-3-Clause

The Requires

 

zf2 pg13 selligent

29/07 2014

1.0

1.0.0.0 https://github.com/earlhickey/PgSelligent

ZF2 module for Selligent Individual API

  Sources   Download

BSD-3-Clause

The Requires

 

zf2 pg13 selligent