2017 © Pedro Peláez
 

library pg-mailchimp

ZF2 module for MailChimp 2.0 API

image

earlhickey/pg-mailchimp

ZF2 module for MailChimp 2.0 API

  • Monday, July 21, 2014
  • by earlhickey
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1,494 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

PgMailchimp

ZF2 MailChimp Module, (*1)

Installation

Main Setup

By cloning project

  1. Install the PgMailchimp 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-mailchimp": "1.*"
    }
    
  2. Now tell composer to download PgMailchimp 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(
            // ...
            'PgMailchimp',
        ),
        // ...
    );
    
  2. Copy ./vendor/earlhickey/PgMailchimp/config/pg-mailchimp.global.php.dist to ./config/autoload/pg-mailchimp.global.php and change the values as desired., (*5)

Usage

  1. Subscribe, (*6)

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

    //  create recipient
    $recipient = new \stdClass();
    $recipient->email = 'johndoe@domain.com';
    
    $unsubscribe = $this->mailchimp()->unsubscribe($recipient);
    

The Versions

21/07 2014

dev-master

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

ZF2 module for MailChimp 2.0 API

  Sources   Download

BSD-3-Clause

The Requires

 

zf2 mailchimp pg13

21/07 2014

dev-development

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

ZF2 module for MailChimp 2.0 API

  Sources   Download

BSD-3-Clause

The Requires

 

zf2 mailchimp pg13

21/07 2014

1.0

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

ZF2 module for MailChimp 2.0 API

  Sources   Download

BSD-3-Clause

The Requires

 

zf2 mailchimp pg13