Releases · brick/postcode

0.6.1

✨ Improvements

  • Support for 4-digit postcodes in Lebanon (LB) (#22)

0.6.0

💥 Breaking changes

  • Minimum PHP version is now 8.2
  • Exceptions have been moved to Brick\Postcode\Exception

✨ New features

  • Exceptions now extend a base PostcodeException class

✨ Improvements

  • Support for 6-digit postcodes in Paraguay (PY) (#21)
  • Exceptions now extend RuntimeException

0.5.0

💥 Breaking changes

  • Minimum PHP version is now 8.1

0.4.1

✨ Improvements

  • Netherlands postcodes cannot start with 0 (#18) - thanks to @RoodFruit

0.4.0

💥 Breaking changes

  • All classes are now final

✨ New features

  • InvalidPostcodeException now has getPostcode() and getCountry() methods (#13)
  • UnknownCountryException now has a getCountry() method (#13)

✨ Improvements

  • The AT, BE and LU formatters now accept (and strip) a leading A/ B/L letter (#13)

Thanks to @rubentebogt!

0.3.3

✨ Improvements

  • Exclude Austrian postal codes starting with 0 (#15) - thanks to @weswaldix

0.3.2

✨ New features

  • Support for 7-digit postal codes in Egypt (#14) - thanks to @faustbrian

0.3.1

✨ New features

  • Formatter for IC (Canary Islands) (#12) - thanks to @mpesari

0.3.0

Minimum PHP version is now 7.4. No breaking changes.

0.2.8