PHPackages                             bharatk/mailgunserviceprovider - 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. bharatk/mailgunserviceprovider

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

bharatk/mailgunserviceprovider
==============================

Mailgun Service Provider for Silex

1.1.0(3y ago)05MITPHPPHP &gt;=7.1.3

Since Jan 5Pushed 3y agoCompare

[ Source](https://github.com/bharatk-dev/MailgunServiceProvider)[ Packagist](https://packagist.org/packages/bharatk/mailgunserviceprovider)[ RSS](/packages/bharatk-mailgunserviceprovider/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

MailgunServiceProvider
======================

[](#mailgunserviceprovider)

A Simple wrapper for the mailgun API for the Silex Framework.

Features
--------

[](#features)

- Easy setup.
- All the Mailgun API features.

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

[](#requirements)

- PHP 5.3+
- mailgun-php

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

[](#installation)

```
$ composer require bharatk/mailgunserviceprovider
```

Setup
-----

[](#setup)

```
require_once __DIR__.'/vendor/autoload.php';

use Silex\Application;
use AchrafSoltani\Provider\MailgunServiceProvider;

$app = new Application();

$app->register(new MailgunServiceProvider(), array(
    'mailgun.api_key' => 'key-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
    'mailgun.domain' => 'domain.tld',
));

// Usage

$app->run();

```

Usage
-----

[](#usage)

- Example 1 : Sending an email

```
$message = array(
    'from'    => 'Excited User ',
    'to'      => 'Baz ',
    'subject' => 'Greetings!',
    'text'    => 'Testing some Mailgun awesomness!'
);

$app['mailgun']->sendMessage($message);

```

- Example 2 : Creating a mailing list through the API

```
$app['mailgun']->post("lists", array(
    'address'     => 'LIST@domain.tld',
    'description' => 'Mailgun Dev List'
));

```

Full API documentation
----------------------

[](#full-api-documentation)

Check how to use the full API capabilities at [https://documentation.mailgun.com/user\_manual.html](https://documentation.mailgun.com/user_manual.html)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1223d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/176df30d810e3ac343d377d94cc1c7e23f732206a51db3565de9f220b49e89ff?d=identicon)[bharatk-dev](/maintainers/bharatk-dev)

---

Top Contributors

[![achrafsoltani](https://avatars.githubusercontent.com/u/1311229?v=4)](https://github.com/achrafsoltani "achrafsoltani (24 commits)")[![bharatk-dev](https://avatars.githubusercontent.com/u/49252190?v=4)](https://github.com/bharatk-dev "bharatk-dev (11 commits)")[![gvelkov](https://avatars.githubusercontent.com/u/144357?v=4)](https://github.com/gvelkov "gvelkov (1 commits)")

### Embed Badge

![Health badge](/badges/bharatk-mailgunserviceprovider/health.svg)

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

###  Alternatives

[mailersend/laravel-driver

MailerSend Laravel Driver

87732.8k4](/packages/mailersend-laravel-driver)[cspoo/swiftmailer-mailgun-bundle

Swiftmailer Mailgun bundle

1031.1M](/packages/cspoo-swiftmailer-mailgun-bundle)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50374.2k18](/packages/dotdigital-dotdigital-magento2-extension)

PHPackages © 2026

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