PHPackages                             cartrabbit/chimpdrill - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. cartrabbit/chimpdrill

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

cartrabbit/chimpdrill
=====================

Tags Parser

1.3.0(7y ago)018CC0-1.0PHPPHP &gt;= 5.3.2

Since Jun 29Pushed 7y ago4 watchersCompare

[ Source](https://github.com/cartrabbit/ChimpDrill)[ Packagist](https://packagist.org/packages/cartrabbit/chimpdrill)[ RSS](/packages/cartrabbit-chimpdrill/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

ChimpDrill - Merge Tag Parser
=============================

[](#chimpdrill---merge-tag-parser)

[![Build Status](https://camo.githubusercontent.com/89bc94caf7bae31cc74c681b1447f7444d3df4884b0c2113cefcf476edc2ca3f/68747470733a2f2f7472617669732d63692e6f72672f466c6f7269616e4b6f65726e65722f4368696d704472696c6c2e737667)](https://travis-ci.org/FlorianKoerner/ChimpDrill)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/872773d13ddf193eabff1ec009a4e710c354a36e7f1d8f8ab4a48a0af651fc5d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f466c6f7269616e4b6f65726e65722f4368696d704472696c6c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/FlorianKoerner/ChimpDrill/?branch=master)[![Coverage Status](https://camo.githubusercontent.com/f7a3e26d09800fee7aabbab17ac3c7a2507a634c82593efa3dbf7fe3bae40f0f/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f466c6f7269616e4b6f65726e65722f4368696d704472696c6c2f62616467652e706e67)](https://coveralls.io/r/FlorianKoerner/ChimpDrill)[![SensioLabsInsight](https://camo.githubusercontent.com/03b634329b0d7e53376d829333892e81d5a732deab6272ed3a1d2f343e95a2e1/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f61376131363561622d666137322d346139382d383334632d3165643838393639303161382f6d696e692e706e67)](https://insight.sensiolabs.com/projects/a7a165ab-fa72-4a98-834c-1ed8896901a8)

Parser for the merge tags syntax of [Mailchimp](http://mailchimp.com) and [Mandrill](http://mandrill.com). Supports [placeholder](http://help.mandrill.com/entries/21678522-How-do-I-use-merge-tags-to-add-dynamic-content-), [filters](http://kb.mailchimp.com/merge-tags/all-the-merge-tags-cheatsheet#Content-encoding-merge-tags) and [conditions](http://kb.mailchimp.com/merge-tags/how-conditional-or-smart-merge-tags-work).

Installation
------------

[](#installation)

Download ChimpDrill by using [composer](https://getcomposer.org):

```
php composer.phar require cartrabbit/chimpdrill:dev-master
```

Or add the code below to your `composer.json`:

```
{
    "require": {
        "cartrabbit/ChimpDrill": "dev-master"
    }
}
```

Example
-------

[](#example)

**Message:**

```
Hi *|NAME|*

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

    *|IF:INVOICE_COUNT == 0|*
        All invoices payed. You are the best!
    *|ELSEIF:INVOICE_COUNT  'John Doe',
    'CUSTOMER' => true,
    'INVOICE_COUNT' => 18,
    'WEATHER' => 'rainy',
    'MOVIE' => 'The last song'
)
```

**Result:**

```
Hi John Doe

    We want your money!

    Are you kidding?

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

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2872d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12708949?v=4)[flycart](/maintainers/flycart)[@flycart](https://github.com/flycart)

---

Top Contributors

[![alagesans](https://avatars.githubusercontent.com/u/16082867?v=4)](https://github.com/alagesans "alagesans (2 commits)")[![FlorianKoerner](https://avatars.githubusercontent.com/u/647303?v=4)](https://github.com/FlorianKoerner "FlorianKoerner (1 commits)")[![rameshelamathi](https://avatars.githubusercontent.com/u/14269208?v=4)](https://github.com/rameshelamathi "rameshelamathi (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cartrabbit-chimpdrill/health.svg)

```
[![Health](https://phpackages.com/badges/cartrabbit-chimpdrill/health.svg)](https://phpackages.com/packages/cartrabbit-chimpdrill)
```

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M283](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M226](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M63](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M344](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
