PHPackages                             florian-koerner/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. [Mail &amp; Notifications](/categories/mail)
4. /
5. florian-koerner/chimpdrill

AbandonedArchivedLibrary[Mail &amp; Notifications](/categories/mail)

florian-koerner/chimpdrill
==========================

Simple Mailchimp / Mandrill Merge Tags Parser

v1.2.0(11y ago)631.3k↓41.4%8CC0-1.0PHPPHP &gt;= 5.3.2

Since Sep 26Pushed 8y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (2)Versions (4)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 florian-koerner/chimpdrill:dev-master
```

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

```
{
    "require": {
        "florian-koerner/chimpdrill": "dev-master"
    }
}
```

Usage
-----

[](#usage)

```
$chimpdrill = new \FlorianKoerner\ChimpDrill\ChimpDrill($message, $placeholder);

var_dump((string) $chimpdrill);
// or
var_dump($chimpdrill->getParsed());
```

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

```

I Love Open Source
------------------

[](#i-love-open-source)

[![I Love Open Source](https://camo.githubusercontent.com/bcec580f7e32760469a8053827165048ce38c05d11e5e1f324e749ef04d1df2a/687474703a2f2f7777772e696c6f76656f70656e736f757263652e696f2f696d616765732f6c6f676f2d6c6967687462672e706e67)](http://www.iloveopensource.io/users/FlorianKoerner)

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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

Every ~27 days

Total

3

Last Release

4199d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/94d22e612e1047d5de374f9d2adc3353c3bdfb52766beafe80bab03f67d2fdaf?d=identicon)[KoernerWS](/maintainers/KoernerWS)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[eduardokum/laravel-mail-auto-embed

Library for embed images in emails automatically

1702.0M5](/packages/eduardokum-laravel-mail-auto-embed)

PHPackages © 2026

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