2017 © Pedro Peláez
 

library chimpdrill

Tags Parser

image

cartrabbit/chimpdrill

Tags Parser

  • Monday, July 2, 2018
  • by flycart
  • Repository
  • 4 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

ChimpDrill - Merge Tag Parser

Build Status Scrutinizer Code Quality Coverage Status SensioLabsInsight, (*1)

Parser for the merge tags syntax of Mailchimp and Mandrill. Supports placeholder, filters and conditions., (*2)

Installation

Download ChimpDrill by using composer:, (*3)

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


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

Example

Message: ``` html, (*5)

Hi *|NAME|*

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

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

  • 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' )

Result: ``` html, (*8)

Hi John Doe

We want your money! , (*9)

Are you kidding? , (*10)

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

```, (*11)

The Versions

02/07 2018

dev-master

9999999-dev

Tags Parser

  Sources   Download

CC0-1.0

The Requires

  • php >= 5.3.2

 

The Development Requires

by Alagesan

29/06 2018

1.3.0

1.3.0.0

Tags Parser

  Sources   Download

CC0-1.0

The Requires

  • php >= 5.3.2

 

The Development Requires

by Alagesan