PHPackages                             oliveris/sdk-mail - 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. oliveris/sdk-mail

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

oliveris/sdk-mail
=================

Sends email and campaigns to a provider specified.

v1.0.3(7y ago)164MITPHP

Since Oct 26Pushed 7y ago1 watchersCompare

[ Source](https://github.com/oliveris/sdk-mail)[ Packagist](https://packagist.org/packages/oliveris/sdk-mail)[ RSS](/packages/oliveris-sdk-mail/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (3)Versions (4)Used By (0)

Mail SDK
========

[](#mail-sdk)

PHP-SDK for multiple Mail services
----------------------------------

[](#php-sdk-for-multiple-mail-services)

Pupose of the SDK is to help with the delivery of mail and campaigns using multiple services.

### Usage

[](#usage)

Pull in the composer package by running the command below:

```
composer require oliveris/sdk-mail

```

Import the Mail namespace into the class (autoloading)

```
use Mail\Mail;

```

Examples
--------

[](#examples)

### Sending an email

[](#sending-an-email)

The following example demonstrates how you can send a basic email

```
$mail = Mail::getDriver('mailgun');
$mail->setKey('your_maligun_api_key');
$mail->setDomain('your_domain');
$mail->setTo('test@test.com');
$mail->setFrom('test-from@test.com');
$mail->setSubject('This is a test subject');
$mail->setBody('Lorem ipsum dolor sit amet, mollis hendrerit vix at. Altera meliore signiferumque vix an. Sonet delectus assentior eu sed, cu meliore ponderum quo. At quo idque virtute. Impedit mentitum est ei, assum abhorreant eam cu.');
$mail->send();

```

### Sending a batch email

[](#sending-a-batch-email)

The following example demonstrates how you can send batch emails.

```
$mail = Mail::getDriver('mailgun');
$mail->setKey('your_maligun_api_key');
$mail->setDomain('your_domain');
$mail->setTo([
    'test@test.com',
    'test2@test.com'
]);
$mail->setFrom('test-from@test.com');
$mail->setSubject('This is a test subject');
$mail->setBody('Lorem ipsum dolor sit amet, mollis hendrerit vix at. Altera meliore signiferumque vix an. Sonet delectus assentior eu sed, cu meliore ponderum quo. At quo idque virtute. Impedit mentitum est ei, assum abhorreant eam cu.');
$mail->send();

```

For further examples look in the tests/index.php.

Built With
----------

[](#built-with)

- PHP 7

Versioning
----------

[](#versioning)

We use [Semantic Versioning 1.0.0](https://semver.org/spec/v1.0.0.html), for example v1.0.0.

Authors
-------

[](#authors)

- Sam Oliveri - Software Engineer

### License

[](#license)

Text is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Total

3

Last Release

2744d ago

### Community

Maintainers

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

---

Top Contributors

[![oliveris](https://avatars.githubusercontent.com/u/20270046?v=4)](https://github.com/oliveris "oliveris (11 commits)")

---

Tags

laravelmailemailmailgun

### Embed Badge

![Health badge](/badges/oliveris-sdk-mail/health.svg)

```
[![Health](https://phpackages.com/badges/oliveris-sdk-mail/health.svg)](https://phpackages.com/packages/oliveris-sdk-mail)
```

###  Alternatives

[boundstate/yii2-mailgun

Mailgun integration for the Yii framework

28160.6k](/packages/boundstate-yii2-mailgun)[yarcode/yii2-mailgun-mailer

Mailgun mailer implementation for Yii2

1576.0k](/packages/yarcode-yii2-mailgun-mailer)

PHPackages © 2026

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