Download the PHP package mailgun/mailgun-php without Composer

On this page you can find all versions of the php package mailgun/mailgun-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?
mailgun/mailgun-php
Rate from 1 - 5
Rated 3.80 based on 5 reviews

Informations about the package mailgun-php

Mailgun PHP SDK

The official Mailgun PHP SDK — a clean, PSR-18 HTTP client wrapper around the Mailgun API.

Latest Version Total Downloads Join the chat at https://gitter.im/mailgun/mailgun-php


Table of Contents


Requirements

The SDK is not coupled to any specific HTTP library — bring your own PSR-18 client.


Installation

EU region? Use https://api.eu.mailgun.net as your endpoint (see below).


Quick Start

Note: The $domain you pass to any API call must match a domain configured in app.mailgun.com.


Sending Email

Simple message

With attachments and tracking options

Scheduled delivery


IP Management

List all account IPs

Inspect a single IP

Assign / remove an IP on a specific domain

Bulk IP operations across all domains

Find all domains using a specific IP

Dedicated IP band

Request a new dedicated IP


Dynamic IP Pools (DIPP)

Dynamic IP Pools let you group dedicated IPs and link them to domains, so sending traffic is spread across all IPs in the pool automatically.

List and inspect pools

Create and configure a pool

Manage IPs inside a pool

When a pool is linked to domains, adding or removing IPs propagates to all linked domains asynchronously after the API responds.

List domains linked to a pool

Delete a pool

Delegate a pool to a subaccount


Analytics


Subaccounts

Make API calls on behalf of a subaccount


Response Handling

All API methods return typed model objects with IDE-friendly getters by default.

Array responses

Prefer raw arrays? Inject ArrayHydrator:

Raw PSR-7 response

Need the raw response? Use NoopHydratornote: no exceptions are thrown on non-200 responses when using this hydrator.


Debugging

Route traffic through Mailgun's Postbin to inspect what the SDK sends:

Custom HTTP requests


Framework Integration

Framework Package
Symfony tehplague/swiftmailer-mailgun-bundle
Yii2 katanyoo/yii2-mailgun-mailer
CakePHP narendravaghela/cakephp-mailgun
Drupal drupal/mailgun
Laravel Built-in — see Laravel Mail docs

Contributing

This is an open-source project under the MIT license, maintained by Mailgun and the community.

Running the tests

Ways to help


Support


All versions of mailgun-php with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
php-http/client-common Version ^2.2.1
php-http/discovery Version ^1.19
php-http/multipart-stream-builder Version ^1.1.2
psr/http-client Version ^1.0
psr/http-message Version ^1.0 || ^2.0
webmozart/assert Version ^1.9.1 || ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mailgun/mailgun-php contains the following files

Loading the files please wait ...