PackageTrack
Sign in Get early access

brick/postcode

A library to format and validate postcodes

0.6.2 2.0M downloads/mo #3170 most downloaded on Packagist brick/postcode

What this package is like to depend on

Last release 25 days ago

29 Jul 2026

Release timing varies

gaps range from 2 weeks to 1.3 years

Some releases are documented

notes for 10 of 21 stable releases

Nothing withdrawn

no release was ever pulled

9 years old

21 releases · first in 2017

3 releases in the last 12 months

see the full history below

Release timeline

21 releases · Nov 2017 to Jul 2026
2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 21
  1. 0.6.2 29 Jul 2026
    Release notes

    🐛 Bug fixes

    • Allow postcodes above 984 99 in Sweden (#24 by @cx18121)
    Open source →
    Release notes

    0.6.2 Latest

    Latest

    Compare

    Choose a tag to compare

    Open source →
  2. 0.6.1 25 Feb 2026
    Release notes

    ✨ Improvements

    • Support for 4-digit postcodes in Lebanon (LB) (#22)
    Open source →
    Release notes

    0.6.1

    Compare

    Choose a tag to compare

    Open source →
  3. 0.6.0 11 Feb 2026
    Release notes

    💥 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
    Open source →
    Release notes

    0.6.0

    Compare

    Choose a tag to compare

    Open source →
  4. 0.5.0 06 Feb 2025
    Release notes

    💥 Breaking changes

    • Minimum PHP version is now 8.1
    Open source →
    Release notes

    0.5.0

    Compare

    Choose a tag to compare

    Open source →
  5. 0.4.1 05 Dec 2024
    Release notes

    ✨ Improvements

    • Netherlands postcodes cannot start with 0 (#18) - thanks to @RoodFruit
    Open source →
    Release notes

    0.4.1

    Compare

    Choose a tag to compare

    Open source →
  6. 0.4.0 08 Oct 2024
    Release notes

    💥 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!

    Open source →
    Release notes

    0.4.0

    Compare

    Choose a tag to compare

    Open source →
  7. 0.3.3 19 Sep 2024
    Release notes

    ✨ Improvements

    • Exclude Austrian postal codes starting with 0 (#15) - thanks to @weswaldix
    Open source →
    Release notes

    0.3.3

    Compare

    Choose a tag to compare

    Open source →
  8. 0.3.2 15 Sep 2024
    Release notes

    ✨ New features

    • Support for 7-digit postal codes in Egypt (#14) - thanks to @faustbrian
    Open source →
    Release notes

    0.3.2

    Compare

    Choose a tag to compare

    Open source →
  9. 0.3.1 08 Dec 2023
    Release notes

    ✨ New features

    • Formatter for IC (Canary Islands) (#12) - thanks to @mpesari
    Open source →
    Release notes

    0.3.1

    Compare

    Choose a tag to compare

    Open source →
  10. 0.3.0 01 Sep 2023
    Release notes

    Minimum PHP version is now 7.4. No breaking changes.

    Open source →
    Release notes

    0.3.0

    Compare

    Choose a tag to compare

    Open source →
  11. 0.2.8 22 Feb 2023

    Nothing published for this version

  12. 0.2.7 10 Jul 2022

    Nothing published for this version

  13. 0.2.6 31 Mar 2021

    Nothing published for this version

  14. 0.2.5 22 Feb 2021

    Nothing published for this version

  15. 0.2.4 18 Aug 2020

    Nothing published for this version

  16. 0.2.3 08 May 2020

    Nothing published for this version

  17. 0.2.2 06 Apr 2020

    Nothing published for this version

  18. 0.2.1 01 Mar 2018

    Nothing published for this version

  19. 0.2.0 26 Jan 2018

    Nothing published for this version

  20. 0.1.1 22 Nov 2017

    Nothing published for this version

  21. 0.1.0 21 Nov 2017

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive