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

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

achrafsoltani/mailgunserviceprovider
====================================

Mailgun Service Provider for Silex

v1.0.5(10y ago)13.1k1MITPHPPHP &gt;=5.3.0

Since May 20Pushed 10y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (6)Used By (0)

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

[](#mailgunserviceprovider)

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

[![Latest Stable Version](https://camo.githubusercontent.com/c650c325960fa711c69ba27af26763e21526ea3b1a289f5a689da44b0fd4cbba/68747470733a2f2f706f7365722e707567782e6f72672f616368726166736f6c74616e692f6d61696c67756e7365727669636570726f76696465722f762f737461626c65)](https://packagist.org/packages/achrafsoltani/mailgunserviceprovider)[![Total Downloads](https://camo.githubusercontent.com/ad3722b9517e530a5f730a136aaeae7b25a4efa5c150c74f00d33d9d6a7c45b9/68747470733a2f2f706f7365722e707567782e6f72672f616368726166736f6c74616e692f6d61696c67756e7365727669636570726f76696465722f646f776e6c6f616473)](https://packagist.org/packages/achrafsoltani/mailgunserviceprovider)[![License](https://camo.githubusercontent.com/73eaf3c248447be9b7db8664200503f5acec1111d09d0d8d53e5684cb9bdbfa7/68747470733a2f2f706f7365722e707567782e6f72672f616368726166736f6c74616e692f6d61696c67756e7365727669636570726f76696465722f6c6963656e7365)](https://packagist.org/packages/achrafsoltani/mailgunserviceprovider)

Features
--------

[](#features)

- Easy setup.
- All the Mailgun API features.

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

[](#requirements)

- PHP 5.3+
- mailgun-php

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

[](#installation)

```
$ composer require achrafsoltani/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

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 96% 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 ~79 days

Total

5

Last Release

3700d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b45a3d637f4c11205705d68b920b47face8d07dfb2e6b220a650dd979b3030a?d=identicon)[AchrafSoltani](/maintainers/AchrafSoltani)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[cspoo/swiftmailer-mailgun-bundle

Swiftmailer Mailgun bundle

1031.1M](/packages/cspoo-swiftmailer-mailgun-bundle)[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)
