PHPackages                             eldadfux/mailgun-lite - 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. eldadfux/mailgun-lite

ActiveProject[API Development](/categories/api)

eldadfux/mailgun-lite
=====================

A lite and minimalistic PHP client library for sending mails using Mailgun API.

v1.5.0(3y ago)54.3k↓61.1%3[1 PRs](https://github.com/eldadfux/mailgun-php-lite/pulls)MITPHPPHP &gt;=7.0.0

Since Jan 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/eldadfux/mailgun-php-lite)[ Packagist](https://packagist.org/packages/eldadfux/mailgun-lite)[ Docs](https://github.com/eldadfux/mailgun-php-lite)[ RSS](/packages/eldadfux-mailgun-lite/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (8)Dependencies (1)Versions (9)Used By (0)

Mailgun PHP Lite
================

[](#mailgun-php-lite)

Mailgun PHP Lite is a lite and minimalistic PHP client library for sending mails using Mailgun API with no external dependencies. This library was created to provide a very simple curl abstraction for sending mails using the Mailgun HTTP API. This is an alternative to those who need to just send simple mails and think the original PHP Client is to heavy for them and have a to much dependencies.

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

[](#installation)

```
composer require 'eldadfux/mailgun-lite:1.3.*'
```

Example
-------

[](#example)

```
$apiKey    = 'your-api-key-here';
$apiDomain = 'your-api-sending-domain-here';

$mailgun = new \MailgunLite\MailgunLite($apiKey, $apiDomain);

$mailgun
    ->setFrom('team@example.com', 'Team Example')
    ->setReplyTo('this@gmail.com') // (optional)
    ->setSchedule(strtotime('next Thursday')) // unix time stamp (optional)
    ->addRecipient('user1@example.com', 'User 1 Name')
    ->addRecipient('user2@example.com', 'User 2 Name')
    ->addRecipient('user3@example.com', 'User 3 Name')
    ->setSubject('Hello World')
    ->setText('I am a string')
    ->setHTML('I am a string')
;

// Send Mail
if(!$mailgun->send()) {
    throw new Exception('Problem sending mail: ' . $mailgun->getError());
}

// Subscribe to newsletter
$mailgun->subscribe('newsletter@example.com', 'user1@example.com');
```

Contributing
------------

[](#contributing)

All code contributions - including those of people having commit access - must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.

Fork the project, create a feature branch, and send us a pull request.

### Versioning

[](#versioning)

For transparency and insight into our release cycle, and for striving to maintain backward compatibility, This project will be maintained under the Semantic Versioning guidelines as much as possible. Releases will be numbered with the following format:

`..`

For more information on SemVer, please visit .

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

[](#requirements)

PHP 7+

We recommend using the latest PHP version whenever possible.

Author
------

[](#author)

**Eldad A. Fux**

-
-

License
-------

[](#license)

This project is licensed under the MIT License - see the LICENSE file for details

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 95.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 ~294 days

Recently: every ~342 days

Total

8

Last Release

1335d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/023f08a9df59f81cc4a04b1cebd20f45ede5db53ef2f9e9ad3d75f4c69be66b8?d=identicon)[eldadfux](/maintainers/eldadfux)

---

Top Contributors

[![eldadfux](https://avatars.githubusercontent.com/u/1297371?v=4)](https://github.com/eldadfux "eldadfux (22 commits)")[![stnguyen90](https://avatars.githubusercontent.com/u/1477010?v=4)](https://github.com/stnguyen90 "stnguyen90 (1 commits)")

---

Tags

mailgunphpapiSimplemailgunlite

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/eldadfux-mailgun-lite/health.svg)

```
[![Health](https://phpackages.com/badges/eldadfux-mailgun-lite/health.svg)](https://phpackages.com/packages/eldadfux-mailgun-lite)
```

###  Alternatives

[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22779.0k](/packages/m165437-laravel-blueprint-docs)

PHPackages © 2026

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