- Test against PHP 8.3.
- Round the total cost of messages to 5 decimal points.
- Added support for EU-only mode: https://gatewayapi.com/blog/new-eu-setup-for-gatewayapi-customers/ - pass
true
to the optional constructor argument and togetPries()
to use the EU-only mode. - Test against PHP 8.2
- Added support for version
0.6.*
ofguzzlehttp/oauth-subscriber
. - Switched to GitHub actions instead of Travis.
- Added compatibility with Guzzle 7.
- Adjustments to tests and nullability.
- Fixed use of incorrect Guzzle exception for detecting connection error vs. HTTP error.
- Support for PHP 8.0.
- Added the
callback_url
parameter toSMSMessage
. Thanks to @Matthew-Kilpatrick. - Fixed some minor nullability and phpdoc inconsistencies.
- Refactored
Constructable
into a trait. - [BC]
Webhook
constructor is nowprotected
and the subclass constructors arefinal
. If you implement this class like it was meant to (using the static constructors) you won't need to make any changes to your code.
- Added
setRecipients()
toSMSMessage
.
- [BC] Restructured namespaces for entity- and webhook-classes.
- [BC] Removed
PastSendTimeException
and its handling as the API has changed so it no longer works. - Added
SuccessfulResponseParsingException
. You should check for this if you implement automatic retries of failed requests. - Made
BaseException
abstract. - Added
Prices
entity for price response. - Added Coveralls and Travis as well as more tests.
- Added more exceptions;
GatewayServerException
andGatewayRequestException
. These allow you to distinguish between actual server errors and 400-range client/library errors. Backwards-compatibility is maintained as these extendBaseException
. - Added proper handling of
json_decode()
-errors usingjson_last_error()
instead of falsy-checks. - Cleaned up response parsing and added more tests.