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
PostcodeExceptionclass
✨ 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
InvalidPostcodeExceptionnow hasgetPostcode()andgetCountry()methods (#13)UnknownCountryExceptionnow has agetCountry()method (#13)
✨ Improvements
- The
AT,BEandLUformatters now accept (and strip) a leadingA/B/Lletter (#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
0.3.0
Minimum PHP version is now 7.4. No breaking changes.