PHPackages                             sendloop/mta-api-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. sendloop/mta-api-php

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

sendloop/mta-api-php
====================

API client library for Sendloop MTA email as a service platform

1.2.0(10y ago)228.4k↓41.1%21Apache-2.0PHPPHP &gt;=5.3

Since Dec 7Pushed 8y ago4 watchersCompare

[ Source](https://github.com/sendloop/mta-api-php)[ Packagist](https://packagist.org/packages/sendloop/mta-api-php)[ Docs](https://github.com/sendloop/mta-api-php)[ RSS](/packages/sendloop-mta-api-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (1)

Welcome to Sendloop MTA PHP SDK Documentation
=============================================

[](#welcome-to-sendloop-mta-php-sdk-documentation)

Sendloop MTA is a transaction email delivery gateway and this PHP SDK lets you to use API easily.

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

[](#quick-start)

First, let's install the library with composer:

```
composer require sendloop/mta-api-php

```

Initialize the mailer with your API key:

```
require_once "vendor/autoload.php"; // Include composer autoloader
$mailer = new \Sendloop\MTA\Mailer("YOUR-API-KEY-HERE");

```

> You can grab your API key from Settings &gt; API Settings page on your Sendloop account.

After initializing the mailer, let's create a message:

```
$message = new \Sendloop\MTA\Message();
$message->setFrom("Sendloop Developers", "hello@sendloop.com");
$message->setReplyTo("Sendloop", "hello@sendloop.com");
$message->setSubject("Quick start guide to Sendloop MTA PHP SDK");
$message->setTextContent("...");
$message->setHTMLContent("...");

```

and send the message to our recipient with mailer:

```
$messageStatusID = $mailer->send("test@recipient.com", $message, ["custom_arg_1" => "my_test_value"]);

```

or send the message to our recipient with a name:

```
$messageStatusID = $mailer->send(["first last name", "test@recipient.com"], $message, ["custom_arg_1" => "my_test_value"]);

```

or send the message with personalization and options:

```
$messageStatusID = $mailer->send(
    ["first last name", "test@recipient.com"],  // recipient
    $message,                                   // message
    ["custom_arg_1" => "my_test_value"],        // custom args
    [                                           // merge vars
        "name" => "Recipient name",
        "account_id" => 1,
        "purchased" => true
    ],
    [                                           // options
        "TrackOpens" => true,
        "TrackClicks" => true,
        "TrackECommerce" => true,
        "TrackGA" => true,
        "Tags" => ["welcome_email", "to_user"],
        "EmailID" => 1 // Draft ID
    ]
);

```

Later get the status of the delivery:

```
$statusDetails = $mailer->status($messageStatusID);

```

or get the status of the latest 50 deliveries:

```
$statusDetails = $mailer->status();

```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 66.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 ~26 days

Total

3

Last Release

3763d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a082ec1678326c4fbec32c031f0558d45c2664f51e3a598c7c138881f82e3d4c?d=identicon)[sendloop](/maintainers/sendloop)

---

Top Contributors

[![merthurturk](https://avatars.githubusercontent.com/u/1395005?v=4)](https://github.com/merthurturk "merthurturk (2 commits)")[![volkan](https://avatars.githubusercontent.com/u/28885?v=4)](https://github.com/volkan "volkan (1 commits)")

---

Tags

apiemail

### Embed Badge

![Health badge](/badges/sendloop-mta-api-php/health.svg)

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

###  Alternatives

[ecomailcz/ecomail

Ecomail.cz API Wrapper

17383.8k4](/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. 🚀

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

PHPackages © 2026

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