PHPackages                             dotdigital/dotdigital-php - 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. dotdigital/dotdigital-php

ActiveLibrary[API Development](/categories/api)

dotdigital/dotdigital-php
=========================

Dotdigital PHP Library

2.9.0(3mo ago)5493.1k↓43.7%53MITPHPPHP ^7.4 || ^8.0

Since Sep 5Pushed 3mo ago5 watchersCompare

[ Source](https://github.com/dotmailer/dotdigital-php)[ Packagist](https://packagist.org/packages/dotdigital/dotdigital-php)[ RSS](/packages/dotdigital-dotdigital-php/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (22)Versions (18)Used By (3)

PHP SDK for the Dotdigital API
==============================

[](#php-sdk-for-the-dotdigital-api)

A PHP wrapper for the [Dotdigital API](https://developer.dotdigital.com/docs/getting-started-with-the-api).

Requirements
------------

[](#requirements)

- An active account with Dotdigital plus valid API user credentials.
- PHP &gt;= 7.4. We recommend PHP 8 - however the code will run on PHP 7.4 with the correct constraints in your own composer.json.
- A [PSR-7 implementation](https://packagist.org/providers/psr/http-message-implementation)
- A [PSR-17 implementation](https://packagist.org/providers/psr/http-factory-implementation)
- A [PSR-18 implementation](https://packagist.org/providers/psr/http-client-implementation)

Setup
-----

[](#setup)

1. Require this package:

```
composer require dotdigital/dotdigital-php

```

2. Require an HTTP factory implementation from [this list](https://packagist.org/providers/psr/http-factory-implementation), for example:

```
composer require guzzlehttp/psr7

```

3. Require an HTTP client package of your choice from [this list](https://packagist.org/providers/php-http/client-implementation), for example:

```
composer require php-http/curl-client

```

Example usage
-------------

[](#example-usage)

```
# app/index.php
require_once __DIR__ . '/vendor/autoload.php';

$dotdigital = new \Dotdigital\V2\Client();
$dotdigital::setApiUser('apiuser-123@apiconnector.com');
$dotdigital::setApiPassword('');
$dotdigital::setApiEndpoint('https://r1-api.dotdigital.com');

$accountInfo = $dotdigital->accountInfo->show();
```

API versions
------------

[](#api-versions)

Dotdigital began releasing endpoints for a new v3 API in May 2023. Initially these endpoints are in public preview, and only available to merchants with certain Dotdigital account configurations.

- [View v3 API specs on Swagger Hub](https://app.swaggerhub.com/search?owner=Dotdigital)

As of version 2.0.0, this SDK wraps both the v2 and the v3 APIs. It will be updated to wrap new v3 endpoints as they become required by our integrations.

### V2

[](#v2)

```
$dotdigital = new \Dotdigital\V2\Client();

```

### V3

[](#v3)

```
$dotdigital = new \Dotdigital\V3\Client();

```

###  Health Score

55

—

FairBetter than 97% of packages

Maintenance80

Actively maintained with recent releases

Popularity43

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 59.8% 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 ~92 days

Recently: every ~132 days

Total

15

Last Release

106d ago

Major Versions

v1.0.0 → v2.0.0-RC12023-06-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/64026704e13c1c665ee5c3c866b28ae5a42e6dd9dea0be9cee67856ff9e4f887?d=identicon)[simon-letch](/maintainers/simon-letch)

![](https://www.gravatar.com/avatar/a286901f8cf6043622f8715176ce8fce4f9fe84307b3d19fc40043e593cb949d?d=identicon)[alastair.mucklow](/maintainers/alastair.mucklow)

---

Top Contributors

[![sta1r](https://avatars.githubusercontent.com/u/77671?v=4)](https://github.com/sta1r "sta1r (52 commits)")[![sertlab](https://avatars.githubusercontent.com/u/40098832?v=4)](https://github.com/sertlab "sertlab (16 commits)")[![pvpcookie](https://avatars.githubusercontent.com/u/26158876?v=4)](https://github.com/pvpcookie "pvpcookie (15 commits)")[![gpl-php](https://avatars.githubusercontent.com/u/194241058?v=4)](https://github.com/gpl-php "gpl-php (4 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/dotdigital-dotdigital-php/health.svg)

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

###  Alternatives

[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35789.4k2](/packages/telnyx-telnyx-php)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[mailgun/mailgun-php

The Mailgun SDK provides methods for all API functions.

1.1k30.8M182](/packages/mailgun-mailgun-php)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

1003.9M50](/packages/getbrevo-brevo-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

758.5M9](/packages/chargebee-chargebee-php)

PHPackages © 2026

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