PHPackages                             erwane/whep-mailgun - 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. erwane/whep-mailgun

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

erwane/whep-mailgun
===================

Mailgun (Sinch) webhooks handler

2.2.0(8mo ago)00MITPHPPHP ^8.1CI passing

Since Aug 13Pushed 8mo agoCompare

[ Source](https://github.com/Erwane/whep-mailgun)[ Packagist](https://packagist.org/packages/erwane/whep-mailgun)[ Docs](https://github.com/Erwane/whep-mailgun)[ RSS](/packages/erwane-whep-mailgun/feed)WikiDiscussions 2.x Synced 1mo ago

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

[Mailgun](https://www.mailgun.com/) (Sinch) webhook handler for [WHEP](https://github.com/Erwane/whep-mailgun) project
======================================================================================================================

[](#mailgun-sinch-webhook-handler-for-whep-project)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![codecov](https://camo.githubusercontent.com/696a357d28588bd3d8070cbe09ba50f4761a2118538563a912fa239834ffe923/68747470733a2f2f636f6465636f762e696f2f67682f457277616e652f776865702d6d61696c67756e2f67726170682f62616467652e7376673f746f6b656e3d424d304846474b394b49)](https://codecov.io/gh/Erwane/whep-mailgun)[![CI](https://github.com/Erwane/whep-mailgun/actions/workflows/ci.yml/badge.svg)](https://github.com/Erwane/whep-mailgun/actions)[![Packagist Downloads](https://camo.githubusercontent.com/aed4405e999b2b427de89a2c3ee44edadc39021b59f8ea41c60618c210336090/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f457277616e652f776865702d6d61696c67756e)](https://packagist.org/packages/Erwane/whep-mailgun)[![Packagist Version](https://camo.githubusercontent.com/fded743650b7dbecdec957bcc7b2a82bb55bee3d8579dd43582562af8f974304/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f457277616e652f776865702d6d61696c67756e)](https://packagist.org/packages/Erwane/whep-mailgun)

Webhook handler for [Mailgun](https://www.mailgun.com/) (Sinch) emailing provider.

Usage
-----

[](#usage)

```
composer require erwane/whep-mailgun
```

```
use WHEP\Exception\SecurityException;
use WHEP\Exception\WHEPException;
use WHEP\Factory;

try {
    $provider = Factory::provider('mailgun', [
        'signing_key' => 'my-private-signing-key',
        'callbacks' => [
            ProviderInterface::EVENT_BLOCKED => [$this, 'callbackInvalidate'],
            ProviderInterface::EVENT_BOUNCE_QUOTA => [$this, 'callbackUnsub'],
        ],
    ]);

    // process the data.
    $provider->process($webhookData);

    // Data available from provider getters.
    $recipient = $provider->getRecipient();

    // Launch callbacks
    $provider->callback();
} catch (SecurityException $e) {
    // log ?
} catch (WHEPException $e) {
    // log ?
}
```

See [WHEP Client README](https://github.com/Erwane/whep-client) for options, events and getters.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance62

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

Total

6

Last Release

269d ago

PHP version history (3 changes)2.2.0PHP ^8.1

2.0.1PHP 8.0.\*

1.2.0PHP ^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/91732d78336582954080932d4350d08420a053dbba6728f1727b5500ab931c65?d=identicon)[Erwane](/maintainers/Erwane)

---

Top Contributors

[![Erwane](https://avatars.githubusercontent.com/u/712604?v=4)](https://github.com/Erwane "Erwane (2 commits)")

---

Tags

webhookmailgunsinch

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/erwane-whep-mailgun/health.svg)

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

###  Alternatives

[stampie/stampie

Stampie is a simple API Wrapper for different email providers such as Postmark, SendGrid, Mailgun, Mandrill.

294254.8k4](/packages/stampie-stampie)[nexylan/slack

A simple PHP package for sending messages to Slack, with a focus on ease of use and elegant syntax.

1071.6M1](/packages/nexylan-slack)[cspoo/swiftmailer-mailgun-bundle

Swiftmailer Mailgun bundle

1031.1M](/packages/cspoo-swiftmailer-mailgun-bundle)[slm/mail

Integration of various email service providers in the Laminas\\Mail

108732.4k1](/packages/slm-mail)[omnimail/omnimail

PHP Library to send email across all platforms using one interface.

32934.3k](/packages/omnimail-omnimail)[gr8shivam/laravel-sms-api

A modern, flexible Laravel package for integrating any SMS gateway with REST API support

10138.4k](/packages/gr8shivam-laravel-sms-api)

PHPackages © 2026

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