postmark-php icon indicating copy to clipboard operation
postmark-php copied to clipboard

The official PHP library for Postmark.

Results 31 postmark-php issues
Sort by recently updated
recently updated
newest added

I am in the process of converting my PHP backend from using SMPT mail to PostMark's API. One key sticking point which is causing a lot of friction is that...

Hi There, I use the Postmark PHP library in a lot of projects which I've recently migrated to PHP 8.1. Because of the invalid PHP version constraint in `composer.json`, this...

In PHP 8.0.13+ and 8.1 error: ``` Fatal error: Declaration of Postmark\Models\DynamicResponseModel::offsetGet($offset) must be compatible with Postmark\Models\CaseInsensitiveArray::offsetGet(mixed $offset): mixed in vendor/wildbit/postmark-php/src/Postmark/Models/DynamicResponseModel.php on line 56 ```

Many errors in PHP 8.0.13+ and 8.1 like this: ``` Error(8192)("Return type of Postmark\Models\CaseInsensitiveArray::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to...

Today, I noticed an interesting issue where I received a `404` response with no `ErrorCode` or `Message` fields in the body. This broke the exception handling in the code. The...

…instead of is_int(). PHP type coersion together with weak typing can have the unintended consequence of causing the template id to be a string according to is_int(). I believe as...

The call `$client->sendEmailWithTemplate("[email protected]","[email protected]",65464,[]);` with `$templateModel` as an empty array as results in the exception below: **PostmarkException:** Received valid, but incompatible JSON input. The reason behind this is the api server...

**Overview** A small number of docblock fixes to better support IDEs **Changes** - add missing `@return PostmarkException` tag to all relevant methods - fix PostmarkClientBase::processRestRequest() `@return` type (was `object`, should...

The send with template endpoint requires a template model to be passed when sending a message. However, an "empty" model is OK to use if the template doesn't require any...