Skip to content

Releases: brick/postcode

0.3.1

08 Dec 17:42
Compare
Choose a tag to compare

✨ New features

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

0.3.0

01 Sep 21:27
Compare
Choose a tag to compare

Minimum PHP version is now 7.4. No breaking changes.

0.2.8

22 Feb 20:49
4b91f14
Compare
Choose a tag to compare

🐛 Bug fix

0.2.7

10 Jul 16:59
a58e510
Compare
Choose a tag to compare

🐛 Bug fix

  • Fix GB formatter not accepting C in inward code (#9) - thanks to @chris-ware

0.2.6

31 Mar 16:28
89220a8
Compare
Choose a tag to compare

🐛 Bug fix

  • Further improvements to the IE formatter (#8) - thanks to @wernerwa

0.2.5

22 Feb 15:24
Compare
Choose a tag to compare

🐛 Bug fix

  • Fixed the IE formatter not accepting the ANN ANNN format (#7) - thanks to @nigobo

0.2.4

18 Aug 08:17
b9200ea
Compare
Choose a tag to compare

🐛 Bug fix

  • Fixed the SE formatter that was missing space (#6) - thanks to @grizzm0

0.2.3

08 May 13:54
Compare
Choose a tag to compare

👌 Improvements to the GB validator

  • support for special case GIR 0AA
  • stricter validation rules:
    • restricted alpha chars depending on position
    • area code check

Thanks to @jamiethompson!

🔥 Removed dependency

The library had an undocumented dependency on ext-ctype, which has been removed with an internal refactoring.

0.2.2

06 Apr 23:05
Compare
Choose a tag to compare

New method: isSupportedCountry().

Thanks to @VictorDauchy!

0.2.1

01 Mar 13:19
Compare
Choose a tag to compare

👌 Code improvements

  • PostcodeFormatter now checks the syntax of the country code before calling class_exists(). This will circumvent any attempt to abuse class_exists() if any security issues ever affect it.

👌 Package improvements

  • When installed with --no-dev, the autoloader does not autoload tests anymore
  • Tests and other files unnecessary for production are excluded from the dist package

This will help make installations more compact.