2017 © Pedro Peláez
 

library chimpdrill

Simple Mailchimp / Mandrill Merge Tags Parser

image

ecomail/chimpdrill

Simple Mailchimp / Mandrill Merge Tags Parser

  • Monday, July 16, 2018
  • by Tlapi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 628 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 5 Versions
  • 35 % Grown

The README.md

ChimpDrill - Merge Tag Parser

Installation

Download ChimpDrill by using composer:, (*1)

``` bash php composer.phar require ecomail/chimpdrill:dev-master, (*2)


Or add the code below to your `composer.json`: ``` json { "require": { "ecomail/chimpdrill": "dev-master" } }

Usage

``` php $chimpdrill = new \Ecomail\ChimpDrill\ChimpDrill($message, $placeholder);, (*3)

var_dump((string) $chimpdrill); // or var_dump($chimpdrill->getParsed());, (*4)



## Example **Message:** ``` html

Hi *|NAME|*

*|IF:CUSTOMER|* We want your money! *|ELSE:|* We wish you all the best. *|END:IF|* , (*5)

*|IF:INVOICE_COUNT == 0|* All invoices payed. You are the best! *|ELSEIF:INVOICE_COUNT , (*6)

  • The current year is: *|DATE:Y|*
  • Current weather: *|UPPER:WEATHER|*
  • Best movie ever: *|TITLE:MOVIE|*

Parameters: ``` php array( 'NAME' => 'John Doe', 'CUSTOMER' => true, 'INVOICE_COUNT' => 18, 'WEATHER' => 'rainy', 'MOVIE' => 'The last song' ), (*7)


**Result:** ``` html

Hi John Doe

We want your money! , (*8)

Are you kidding? , (*9)

  • The current year is: 2014
  • Current weather: RAINY
  • Best movie ever: The Last Song

The Versions

16/07 2018

dev-master

9999999-dev

Simple Mailchimp / Mandrill Merge Tags Parser

  Sources   Download

CC0-1.0

The Requires

  • php >= 5.3.2

 

The Development Requires

by Ecomail

29/01 2018

v1.3.0

1.3.0.0

Simple Mailchimp / Mandrill Merge Tags Parser

  Sources   Download

CC0-1.0

The Requires

  • php >= 5.3.2

 

The Development Requires

by Ecomail

18/11 2014

v1.2.0

1.2.0.0

Simple Mailchimp / Mandrill Merge Tags Parser

  Sources   Download

CC0-1.0

The Requires

  • php >= 5.3.2

 

The Development Requires

by Florian Körner

18/11 2014

v1.1.2

1.1.2.0

Simple Mailchimp / Mandrill Merge Tags Parser

  Sources   Download

CC0-1.0

The Requires

  • php >= 5.3.2

 

The Development Requires

by Florian Körner

26/09 2014

v1.1.1

1.1.1.0

Simple Mailchimp / Mandrill Merge Tags Parser

  Sources   Download

CC0-1.0

The Requires

  • php >= 5.3.2

 

The Development Requires

by Florian Körner