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

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

duta/duta-php
=============

Official PHP SDK for Duta — transactional email for developers.

v0.1.6(1mo ago)01MITPHPPHP &gt;=8.1

Since Jun 14Pushed 1mo agoCompare

[ Source](https://github.com/indra-sh/duta-php)[ Packagist](https://packagist.org/packages/duta/duta-php)[ Docs](https://duta.indra.sh)[ RSS](/packages/duta-duta-php/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (4)Used By (0)

Duta PHP SDK
============

[](#duta-php-sdk)

Official PHP client for [Duta](https://duta.indra.sh). Uses cURL, no third-party dependencies.

Install
-------

[](#install)

```
composer require duta/duta-php
```

Quickstart
----------

[](#quickstart)

```
require 'vendor/autoload.php';

$duta = new \Duta\Client('duta_live_xxx');

$result = $duta->emails->send([
    'from' => 'hello@yourdomain.com',
    'to' => 'user@example.com',
    'subject' => 'Welcome to Duta',
    'html' => 'Thanks for signing up!',
]);

echo "Sent: " . $result['id'];
```

Get an API key from the [dashboard](https://app.duta.indra.sh). The sender domain must be verified first.

Error handling
--------------

[](#error-handling)

Methods throw `\Duta\DutaException` on failure:

```
use Duta\DutaException;

try {
    $duta->emails->send([ /* ... */ ]);
} catch (DutaException $e) {
    echo $e->statusCode . ' ' . $e->name . ': ' . $e->getMessage();
    // $e->name: authentication_error | permission_denied | rate_limit_exceeded | ...
}
```

API
---

[](#api)

### `new \Duta\Client(string $apiKey, string $baseUrl = ..., int $timeout = 30)`

[](#new-dutaclientstring-apikey-string-baseurl---int-timeout--30)

### `$duta->emails->send(array $params)`

[](#duta-emails-sendarray-params)

`$params` keys: `from`, `to` (string or array), `subject`, `html`, `text`, `reply_to`, `tags` (assoc array). Returns an array with `id` and `status`.

### `$duta->emails->get(string $id)`

[](#duta-emails-getstring-id)

Retrieve one email. Requires a full-access API key.

### `$duta->emails->list(int $page = 1, int $limit = 20)`

[](#duta-emails-listint-page--1-int-limit--20)

List emails, newest first. Requires a full-access API key.

License
-------

[](#license)

MIT

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance91

Actively maintained with recent releases

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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 ~0 days

Total

3

Last Release

45d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/61a872f206e419933a3d9001356e837879e205cf48a8b31b43cc594823b0d24b?d=identicon)[Fawwazs17](/maintainers/Fawwazs17)

---

Top Contributors

[![Fawwazs17](https://avatars.githubusercontent.com/u/186827085?v=4)](https://github.com/Fawwazs17 "Fawwazs17 (2 commits)")

---

Tags

emailsestransactional emaildutaresend-alternative

### Embed Badge

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

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

###  Alternatives

[slm/mail

Integration of various email service providers in the Laminas\\Mail

108745.7k1](/packages/slm-mail)[putyourlightson/craft-amazon-ses

Amazon SES mailer adapter.

1193.4k2](/packages/putyourlightson-craft-amazon-ses)[socketlabs/email-delivery

SocketLabs Email Delivery PHP Client Library

1057.7k1](/packages/socketlabs-email-delivery)[juhasev/laravel-ses

Allows you to track opens, deliveries, bounces, complaints and clicked links when sending emails through Laravel and Amazon SES

1710.3k](/packages/juhasev-laravel-ses)[azine/mailgunwebhooks-bundle

Symfony2 Bundle to easily capture feedback from mailgun.com via their provided webhooks

104.2k](/packages/azine-mailgunwebhooks-bundle)

PHPackages © 2026

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