Mailgun v2.2.0 Release Notes
-
This version contains a new way of using the API. Each endpoint return a domain object and the 📚 endpoints are grouped like the API documentation.
➕ Added
- Api classes in Mailgun\Api*
- Api models/responses in Mailgun\Model*
- ➕ Added Hydrators to hydrate PSR-7 responses to arrays or domain objects.
- 👻 All exceptions extend
Mailgun\Exception
. - 🆕 New exceptions in
Mailgun\Exception
namespace. - ➕ Added
HttpClientConfigurator
to configure the HTTP client. - ➕ Added HttpClient plugins
History
andReplaceUriPlugin
- Assertions with Webmozart\Assert
Mailgun\Mailgun::getLastResponse()
Mailgun\Connection\RestClient::getAttachment($url)
- Clear license information
🛠 Fixed
- 🛠 Fix disordered POST parameters. We do not use array syntax.
- 💅 Code styles
🗄 Deprecated
🚚 The following classes will be removed in version 3.0.
Mailgun\Connection\Exceptions\GenericHTTPError
Mailgun\Connection\Exceptions\InvalidCredentials
Mailgun\Connection\Exceptions\MissingEndpoint
Mailgun\Connection\Exceptions\MissingRequiredParameters
Mailgun\Connection\Exceptions\NoDomainsConfigured
Mailgun\Connection\RestClient
Mailgun\Constants\Api
Mailgun\Constants\ExceptionMessages
Mailgun\Mailgun::$resetClient
Mailgun\Mailgun::sendMessage()
Mailgun\Mailgun::verifyWebhookSignature()
Mailgun\Mailgun::post()
Mailgun\Mailgun::get()
Mailgun\Mailgun::delete()
Mailgun\Mailgun::put()
Mailgun\Mailgun::setApiVersion()
Mailgun\Mailgun::setSslEnabled()
Mailgun\Mailgun::MessageBuilder()
Mailgun\Mailgun::OptInHandler()
Mailgun\Mailgun::BatchMessage()