Skip to content

Releases: postalserver/postal-php

v2.0.3

Choose a tag to compare

@willpower232 willpower232 released this 04 Aug 10:27
b0bcfd9

Resolve PHP 8.4 deprecation warnings.

v2.0.2

Choose a tag to compare

@willpower232 willpower232 released this 01 Oct 13:19
bb66440

Fix the raw endpoint not working properly at all.

What's Changed

New Contributors

Full Changelog: v2.0.1...v2.0.2

v2.0.1

Choose a tag to compare

@willpower232 willpower232 released this 19 Dec 09:55
e361d11

A bugfix release to correct behaviour around throwing exceptions when provided with a specific error code from Postal.

Full Changelog: v2.0.0...v2.0.1

v2.0.0

Choose a tag to compare

@willpower232 willpower232 released this 24 Jul 11:54
027a340

A full rewrite to rely on the more common Guzzle client and apply tests. The minimum PHP version has been changed to 7.4.

This is not backwards compatible and you will need to change your code to use this new version

For sending a message, the changes are mostly as follows, from

use Postal\SendMessage;

$postalmessage = new SendMessage($client);
$response = $postalmessage->send();
$postal_email_id = $response->result->message_id;
foreach ($response->recipients() as $address => $message) {
    $postal_id = $message->id();
    $postal_token = $message->token();
}

to

use Postal\Send\Message as SendMessage;

$postalmessage = new SendMessage();
$response = $client->send->message($postalmessage);
$postal_email_id = $response->message_id;
foreach ($response->recipients() as $address => $message) {
    $postal_id = $message->id;
    $postal_token = $message->token;
}

However you should take a moment to have a look at 027a340 for the full details.

Kudos to @Josh-G for all the hard work here.

v1.0.1

Choose a tag to compare

@willpower232 willpower232 released this 27 Jan 11:01
7656516

Lock rmccue/requests at v1 to avoid installing v2 which has changed namespaces for PSR reasons.

v1.0

Choose a tag to compare

@adamcooke adamcooke released this 15 May 19:31

The first release