We are pleased to announce the release of version 2.0 of the Australia Post API SDK for PHP. This library is widely used throughout the community and we hope that the new version will address a few of the issues we've had with it over the years, and make it even easier to use for other developers.

Some of the highlights from this release are:

  • The Guzzle 3 client has been replaced with the more generic HTTPlug PSR-7/PSR-18 client. HTTPlug is a more modern adapter library that uses the current PSR standards for HTTP clients, and removing the Guzzle dependency should also get rid of the annoying "package guzzle/guzzle is abandoned, you should avoid using it" warning Composer shows when installing or updating packages.
  • The library is now using PSR-4 autoloading, and we took the opportunity to move all of the classes into a top-level Fontis namespace.
  • PHP 7.1 or greater is now a requirement. Aside from now being the lowest support version of PHP, this allows us to make use of strict types and argument and return type hints.
  • The license has been changed from LGPL 2.0 to OSL 3.0, for consistency with our other packages. Both are reasonably permissive licenses so this should not have a tangible impact on anyone using the library.
  • Unit tests have been removed since none of them were relevant any more, and we found the existing tests did not provide much value.

Please note that this release does not include support for the Delivery Choices API. Since Australia Post removed address validation we have not had any need for it, but we'd welcome anyone who wants to contribute changes to add Delivery Choices in.

The new version of the Australia Post API SDK for PHP is now available for immediate download on GitHub. If you have any feedback or would like to contribute, please submit an issue on GitHub.