# mailgun/mailgun-php

Mailgun's Official SDK for PHP

Repository: https://github.com/mailgun/mailgun-php
Canonical: https://ross.abutalabs.com/products/mailgun-php
Homepage: http://www.mailgun.com
Language: PHP
License: MIT
License Family: permissive
Last push: 2026-09-02T11:50:14+00:00

## Health v2 (maintenance only)
Score: 96/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 88, longevity 100
- inputs: {"age_days": 4787, "days_push": 0, "days_rel": 0, "gap_med": 55, "n_releases_24m": 10}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1138, forks 314 (observed 2026-09-03T02:15:14.684898+00:00)

## What it is
The official Mailgun SDK for PHP, a PSR-18 HTTP client wrapper around the Mailgun email API. It lets PHP applications send, track, and manage transactional email, plus IP management, analytics, subaccounts, and email validation.

## Use cases
- send transactional email from a PHP app
- integrate Mailgun email API into Laravel or Symfony
- send emails with attachments and tracking
- validate email addresses before sending
- schedule email delivery
- manage IP pools and subaccounts via API

## When to choose
- you use PHP and Mailgun as your email provider
- you want a PSR-18 compatible client with any HTTP library
- you need official, maintained SDK support

## When to avoid
- you use a different email provider
- your project is not PHP
- you need SMTP-only sending without API features

## Facets
- artifact type: library
- maturity: active
- function: http-client, email, sdk
- domain: email, apis, developer-tools, backend
- platform: php
- tags: mailgun, transactional-email, psr-18, email-api, email-validation, smtp, web-server

## Member repositories
- mailgun/mailgun-php (main) score 96

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:14.684898+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:36:10.073420+00:00, confidence not recorded.
  - readme: https://github.com/mailgun/mailgun-php (fetched 2026-09-03T02:15:14.684898+00:00, sha 0e0302c6fbe3)
  - homepage: http://www.mailgun.com (fetched 2026-08-29T12:41:16.111832+00:00, sha 689b2a4f4fc5)
  - site_page: https://www.mailgun.com/features/email-api (fetched 2026-08-29T12:41:16.129338+00:00, sha d7028b429361)
  - site_page: https://www.mailgun.com/features/smtp-server (fetched 2026-08-29T12:41:16.131154+00:00, sha be1d6886d594)
  - site_page: https://www.mailgun.com/features/email-validation-api (fetched 2026-08-29T12:41:16.133228+00:00, sha 9e8fd0423747)
  - site_page: https://www.mailgun.com/about (fetched 2026-08-29T12:41:16.120798+00:00, sha f5ab9f7f8e1c)
  - site_page: https://www.mailgun.com/about/jobs (fetched 2026-08-29T12:41:16.122809+00:00, sha e609a6ca9627)
  - site_page: https://documentation.mailgun.com/ (fetched 2026-08-29T12:41:16.124571+00:00, sha fffbeab9e6e9)
  - site_page: https://documentation.mailgun.com/docs/mailgun/sdk/introduction (fetched 2026-08-29T12:41:16.126124+00:00, sha 963ce26541df)
  - site_page: https://www.mailgun.com/pricing (fetched 2026-08-29T12:41:16.127645+00:00, sha 241806e67008)
- Data as of 2026-08-30T08:39:29.467469+00:00.
