PHPackages                             maxlapko/emaildirect - 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. maxlapko/emaildirect

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

maxlapko/emaildirect
====================

Php wrapper for email direct

0.0.1(12y ago)37101[1 PRs](https://github.com/maxlapko/emaildirect/pulls)PHPPHP &gt;=5.3.0

Since Jan 23Pushed 12y ago2 watchersCompare

[ Source](https://github.com/maxlapko/emaildirect)[ Packagist](https://packagist.org/packages/maxlapko/emaildirect)[ Docs](http://docs.emaildirect.com)[ RSS](/packages/maxlapko-emaildirect/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)DependenciesVersions (2)Used By (0)

emaildirect
===========

[](#emaildirect)

===========

A php library which implements the complete functionality of the REST [Email Direct API](https://docs.emaildirect.com).

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

[](#installation)

### Composer install

[](#composer-install)

add package to require section

```
require: "maxlapko/emaildirect": "dev-master"

```

composer update

### Plain install

[](#plain-install)

Download package code

require\_once 'EmailDirect.php'; EmailDirect::register(true);

Examples
--------

[](#examples)

### Retrieve a list of all your publications.

[](#retrieve-a-list-of-all-your-publications)

```
$apiKey = '...';
$emailDirect = new EmailDirect($apiKey);
$response = $emailDirect->publications()->all();
// the respone instance of EmailDirect_Response class, it has ArrayAccess interface
if ($response->success()) {
    $data = $response->getData(); // return array
    // or $publications = $response->Publications; return all publications as array
    foreach ($data['Publications'] as $publication) {
        echo $publication['PublicationID'] . ': ' . $publication['Name'] . PHP_EOL;
    }
} else {
    echo $response->getErrorMessage();
}

```

Results in:

```
1: Publication One
2: Publication Two

```

### Retrieve a creative list.

[](#retrieve-a-creative-list)

```
$creatives = $emailDirect->creatives();
if ($creatives->all()->Items as $creative) {
    $details = $creatives->setId($creative['CreativeID'])->details();
    echo $details->HTML;
}

```

### Create, then remove a Publication

[](#create-then-remove-a-publication)

```
$response = $emailDirect->publications()->create('Test', array('Description' => 'Test Publication'));
if ($response->success()) {
    $data = $response->getData();
    $emailDirect->publications($data['PublicationID'])->delete();
}

```

### Updating a subscriber's custom fields

[](#updating-a-subscribers-custom-fields)

```
$emailDirect->subscribers('email@email.com').update(array('Publications' => array(3)));

```

When creating a subscriber

```
$response = $emailDirect->subscribers->create($email, array(
    'Publications' => array(1),
    'CustomFields' => array('FirstName' => 'Max', 'LastName' => 'Lapko')
));

```

Credits
-------

[](#credits)

- Max Lapko

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

4542d ago

### Community

Maintainers

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

---

Top Contributors

[![maxlapko](https://avatars.githubusercontent.com/u/495263?v=4)](https://github.com/maxlapko "maxlapko (7 commits)")

---

Tags

apiemaildirectphprestapiemail

### Embed Badge

![Health badge](/badges/maxlapko-emaildirect/health.svg)

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

###  Alternatives

[ecomailcz/ecomail

Ecomail.cz API Wrapper

17418.3k4](/packages/ecomailcz-ecomail)[hafael/azure-mailer-driver

Supercharge your Laravel or Symfony app with Microsoft Azure Communication Services (ACS)! Effortlessly add email, chat, voice, video, and telephony-over-IP for next-level communication. 🚀

15130.8k](/packages/hafael-azure-mailer-driver)

PHPackages © 2026

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