2017 © Pedro Peláez
 

cakephp-plugin cakephp-mailchimp

CakePHP 2.x plugin for MailChimp

image

prabpornpra/cakephp-mailchimp

CakePHP 2.x plugin for MailChimp

  • Wednesday, March 12, 2014
  • by prabpornpra
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4,612 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

MailChimp

It is specific use for CakePHP plugin., (*1)

Installation

Can install it via Composer or git submodule., (*2)

Composer

composer install

or if you are already using composer, (*3)

composer update 

Git Submodule

git submodule add https://github.com/prabpornpra/MailChimp.git pathForYourPluginFolder/nameThePlugin

Configuration

New for CakePHP 2.0, plugins need to be loaded manually in app/Config/bootstrap.php., (*4)

CakePlugin::load('MailChimp')

In app/Config, create a php file and name it mail_chimp.php. Inside mail_chimp.php add these code below., (*5)

$config['Chimp']['url'] = 'api.mailchimp.com/';
$config['Chimp']['key'] = "Your API Key from your MailChimp account"
$config['Chimp']['version'] = '2.0';
$config['Chimp']['lists_subscribe'] = '/lists/subscribe';
$config['Chimp']['lists_member_info'] = '/lists/member-info';

Usage

Version 1.0* has two methods, (*6)

Subscribe email

Add an email into subscribe list, (*7)

listSubscribe($listId, $params)

$listId: The list id to connect to, you can get it from your MailChimp account., (*8)

$params: email for subscribe Ex:, (*9)

$params = array (
  'email' => array('email' => 'your email')
);

You can add more option into $params, see the format in, http://apidocs.mailchimp.com/api/2.0/lists/subscribe.php If the method is called successfully, an confirmation email will be sent to the email that want to get subscribe., (*10)

Check email status in subscribe list

getEmailStatus($listId, $email) 

$listId: The list id to connect to, you can get it from your MailChimp account., (*11)

$email: The email that you want to check the status, (*12)

This method will return a string status., (*13)

Pending: The email confirmation is sent to this email, but the user haven't response yet.
Subscribe: This email is already subscribe in the list.
Unsubscribe: This email is unsubscribe in the list.
Not subscribe: This email haven't been subscribe in the list before.

License

MIT License See LICENSE file., (*14)

The Versions

12/03 2014

dev-master

9999999-dev

CakePHP 2.x plugin for MailChimp

  Sources   Download

MIT

The Requires

 

by Avatar prabpornpra

12/03 2014

dev-develop

dev-develop

CakePHP 2.x plugin for MailChimp

  Sources   Download

MIT

The Requires

 

by Avatar prabpornpra

12/03 2014

v1.0.4

1.0.4.0

CakePHP 2.x plugin for MailChimp

  Sources   Download

MIT

The Requires

 

by Avatar prabpornpra

26/02 2014

v1.0.3

1.0.3.0

CakePHP 2.x plugin for MailChimp

  Sources   Download

MIT

The Requires

 

by Avatar prabpornpra

26/02 2014

v1.0.2

1.0.2.0

CakePHP 2.x plugin for MailChimp

  Sources   Download

MIT

The Requires

 

by Avatar prabpornpra

26/02 2014

v1.0.1

1.0.1.0

CakePHP 2.x plugin for MailChimp

  Sources   Download

MIT

The Requires

 

by Avatar prabpornpra

26/02 2014

v1.0.0

1.0.0.0

CakePHP 2.x plugin for MailChimp

  Sources   Download

MIT

The Requires

 

by Avatar prabpornpra