Registry / http-client / mailgun-mailgun-php

mailgun-mailgun-php

JSON →
library4.5.0phppackagistunverified

The Mailgun SDK provides methods for all API functions.

composer require mailgun/mailgun-php
INSTALL
IMPORT
SIG · MAILGUN-MAILGUN-PH
M
mailgun-mailgun-php
http-clientphpv4.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Mailgun
use Mailgun\Mailgun;

Send an email using the Mailgun API.

use Mailgun\Mailgun; $mg = Mailgun::create('your-api-key'); $result = $mg->messages()->send('example.com', [ 'from' => 'bob@example.com', 'to' => 'alice@example.com', 'subject' => 'Hello', 'text' => 'Testing Mailgun!' ]);
Debug
Known issues
gotchaAPI key must be kept secret; do not hardcode in source.
fix
Use environment variables or a secure configuration.
affects: >=4.0.0
Upgrade
Version history
4.5.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
22
OpenAI (training)
1
Resources
mailgun-mailgun-php — pip install mailgun-mailgun-php · libregistry