PHPackages                             mailchimp/transactional - 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. [API Development](/categories/api)
4. /
5. mailchimp/transactional

ActiveLibrary[API Development](/categories/api)

mailchimp/transactional
=======================

1.4.1(1mo ago)458.9M—9.1%36[1 PRs](https://github.com/mailchimp/mailchimp-transactional-php/pulls)15proprietaryPHPPHP &gt;=7.2

Since Oct 14Pushed 3mo ago7 watchersCompare

[ Source](https://github.com/mailchimp/mailchimp-transactional-php)[ Packagist](https://packagist.org/packages/mailchimp/transactional)[ Docs](http://swagger.io)[ RSS](/packages/mailchimp-transactional/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (8)Versions (44)Used By (15)

 [ ![Mailchimp Developer](https://raw.githubusercontent.com/mailchimp/mailchimp-client-lib-codegen/main/resources/images/mcdev-banner.png) ](https://mailchimp.com/developer/)

Mailchimp Transactional — PHP
=============================

[](#mailchimp-transactional--php)

The official PHP client library for the Mailchimp Transactional API (v1)

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

[](#installation)

**Option 1:** Install via Packagist

```
composer require mailchimp/transactional

```

Or add the following to `composer.json`

```
{
  "require": {
    "mailchimp/transactional": "*"
  }
}

```

Install all composer dependencies using:

```
composer install

```

**Option 2:** Install Manually

Clone the repo

```
git clone git@github.com:mailchimp/mailchimp-transactional-php.git

```

In the project root, install all dependencies

```
composer install

```

Manually include `vendor/autoload.php` in your implementation

```
require_once('/path/to/MailchimpTransactional/vendor/autoload.php');
```

Quick Start
-----------

[](#quick-start)

### Note that this SDK requires PHP 7.2 or above.

[](#note-that-this-sdk-requires-php-72-or-above)

```
require_once('/path/to/MailchimpTransactional/vendor/autoload.php');

$mailchimp = new MailchimpTransactional\ApiClient();
$mailchimp->setApiKey('YOUR_API_KEY');

$response = $mailchimp->users->ping();
print_r($response);
```

Sending Requests
----------------

[](#sending-requests)

All requests are sent via POST and accept a single argument as the request body parameter.

```
$mailchimp->templates->publish([ 'name' => 'My Template']);
```

Output Formats
--------------

[](#output-formats)

Optionally, you can set the default response format for **all requests** to one of the following:

- `json` *(default)*
- `xml`
- `php`
- `yaml`

```
$mailchimp->setDefaultOutputFormat('xml');
```

You can also set the response format for a **single request** by passing in a special `outputFormat` param to the request body.

```
$mailchimp->senders->list([ 'outputFormat' => 'php']);
```

PRs and Issues
--------------

[](#prs-and-issues)

This repo is autogenerated from  -- please submit PRs or issues there!

API Endpoints
-------------

[](#api-endpoints)

All URIs are relative to **

MethodEndpoint**allowlists.add**/allowlists/add**allowlists.delete**/allowlists/delete**allowlists.list**/allowlists/list**exports.activity**/exports/activity**exports.allowlist**/exports/allowlist**exports.info**/exports/info**exports.list**/exports/list**exports.rejects**/exports/rejects**exports.whitelist**/exports/whitelist**inbound.addDomain**/inbound/add-domain**inbound.addRoute**/inbound/add-route**inbound.checkDomain**/inbound/check-domain**inbound.deleteDomain**/inbound/delete-domain**inbound.deleteRoute**/inbound/delete-route**inbound.domains**/inbound/domains**inbound.routes**/inbound/routes**inbound.sendRaw**/inbound/send-raw**inbound.updateRoute**/inbound/update-route**ips.cancelWarmup**/ips/cancel-warmup**ips.checkCustomDns**/ips/check-custom-dns**ips.createPool**/ips/create-pool**ips.delete**/ips/delete**ips.deletePool**/ips/delete-pool**ips.info**/ips/info**ips.list**/ips/list**ips.listPools**/ips/list-pools**ips.poolInfo**/ips/pool-info**ips.provision**/ips/provision**ips.setCustomDns**/ips/set-custom-dns**ips.setPool**/ips/set-pool**ips.startWarmup**/ips/start-warmup**mctemplates.mcTemplatesInfo**/mctemplates/info**mctemplates.mcTemplatesList**/mctemplates/list**mctemplates.mcTemplatesRender**/mctemplates/render**mctemplates.mcTemplatesTimeSeries**/mctemplates/time-series**messages.cancelScheduled**/messages/cancel-scheduled**messages.content**/messages/content**messages.info**/messages/info**messages.listScheduled**/messages/list-scheduled**messages.parse**/messages/parse**messages.reschedule**/messages/reschedule**messages.search**/messages/search**messages.searchTimeSeries**/messages/search-time-series**messages.send**/messages/send**messages.sendMcTemplate**/messages/send-mc-template**messages.sendRaw**/messages/send-raw**messages.sendSms**/messages/send-sms**messages.sendTemplate**/messages/send-template**metadata.add**/metadata/add**metadata.delete**/metadata/delete**metadata.list**/metadata/list**metadata.update**/metadata/update**rejects.add**/rejects/add**rejects.delete**/rejects/delete**rejects.list**/rejects/list**senders.addDomain**/senders/add-domain**senders.checkDomain**/senders/check-domain**senders.deleteDomain**/senders/delete-domain**senders.domains**/senders/domains**senders.info**/senders/info**senders.list**/senders/list**senders.timeSeries**/senders/time-series**senders.verifyDomain**/senders/verify-domain**subaccounts.add**/subaccounts/add**subaccounts.delete**/subaccounts/delete**subaccounts.info**/subaccounts/info**subaccounts.list**/subaccounts/list**subaccounts.pause**/subaccounts/pause**subaccounts.resume**/subaccounts/resume**subaccounts.update**/subaccounts/update**tags.allTimeSeries**/tags/all-time-series**tags.delete**/tags/delete**tags.info**/tags/info**tags.list**/tags/list**tags.timeSeries**/tags/time-series**templates.add**/templates/add**templates.delete**/templates/delete**templates.info**/templates/info**templates.list**/templates/list**templates.publish**/templates/publish**templates.render**/templates/render**templates.timeSeries**/templates/time-series**templates.update**/templates/update**urls.addTrackingDomain**/urls/add-tracking-domain**urls.checkTrackingDomain**/urls/check-tracking-domain**urls.deleteTrackingDomain**/urls/delete-tracking-domain**urls.list**/urls/list**urls.search**/urls/search**urls.timeSeries**/urls/time-series**urls.trackingDomains**/urls/tracking-domains**users.info**/users/info**users.ping**/users/ping**users.ping2**/users/ping2**users.senders**/users/senders**webhooks.add**/webhooks/add**webhooks.delete**/webhooks/delete**webhooks.info**/webhooks/info**webhooks.list**/webhooks/list**webhooks.update**/webhooks/update**whitelists.add**/whitelists/add**whitelists.delete**/whitelists/delete**whitelists.list**/whitelists/listAdditional Libraries
--------------------

[](#additional-libraries)

Mailchimp Transactional libraries are available in the following languages:

 [ ![](https://github.com/mailchimp/mailchimp-client-lib-codegen/raw/main/resources/images/lang_node.png?raw=true) ](https://github.com/mailchimp/mailchimp-transactional-node) [ ![](https://github.com/mailchimp/mailchimp-client-lib-codegen/raw/main/resources/images/lang_php.png?raw=true) ](https://github.com/mailchimp/mailchimp-transactional-php) [ ![](https://github.com/mailchimp/mailchimp-client-lib-codegen/raw/main/resources/images/lang_ruby.png?raw=true) ](https://github.com/mailchimp/mailchimp-transactional-ruby) [ ![](https://github.com/mailchimp/mailchimp-client-lib-codegen/raw/main/resources/images/lang_python.png?raw=true) ](https://github.com/mailchimp/mailchimp-transactional-python)

###  Health Score

62

—

FairBetter than 99% of packages

Maintenance84

Actively maintained with recent releases

Popularity60

Solid adoption and visibility

Community27

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 72.7% 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 ~47 days

Recently: every ~12 days

Total

43

Last Release

55d ago

PHP version history (2 changes)1.0.19PHP &gt;=5.5

1.0.22PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/7eb4ae267b7853557172c0306453af43c8af5691cf963dad9ea781b7c98ba6f4?d=identicon)[mailchimp](/maintainers/mailchimp)

---

Top Contributors

[![actions-user](https://avatars.githubusercontent.com/u/65916846?v=4)](https://github.com/actions-user "actions-user (32 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (12 commits)")

---

Tags

mailchimpmailchimp-sdkmandrillmandrill-apimandrill-api-wrapperphpphpapisdkswagger

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/mailchimp-transactional/health.svg)

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

###  Alternatives

[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)[clever/clever-php

231.6k](/packages/clever-clever-php)

PHPackages © 2026

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