PackageTrack
Sign in Get early access

barbieswimcrew/zip-code-validator

Constraint class for international zipcode validation

v4.0.1 2.6M downloads/mo #3124 most downloaded on Packagist barbieswimcrew/zip-code-validator

What this package is like to depend on

Last release 2 days ago

21 Aug 2026

Ships fairly regularly

a new release about every 5 months

Some releases are documented

notes for 10 of 35 stable releases

Nothing withdrawn

no release was ever pulled

10 years old

35 releases · first in 2016

3 releases in the last 12 months

see the full history below

Release timeline

35 releases · Aug 2016 to Aug 2026
2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 35
  1. v4.0.1 21 Aug 2026
    Release notes

    Hello Zipcode validators ;-)

    Thanks to @jcglombard Luxembourg postal codes now accept the official L-XXXX format in addition to four digits. Both 8211 and L-8211 are valid.

    To upgrade run:

    $ composer update barbieswimcrew/zip-code-validator
    

    See changes: v4.0.0...v4.0.1

    Documentation: https://github.com/barbieswimcrew/zip-code-validator/blob/v4.0.1/README.md

    Highlights:

    [IMPROVEMENT] #68 Allow optional L- prefix for Luxembourg postal codes #67 by @jcglombard

    Happy validating!

    Open source →
  2. v4.0.0 21 Apr 2026
    Release notes

    Hello Zipcode validators ;-)

    This v4.0.0 release is a security-focused update. It requires patched symfony/validator versions only (^5.4.43 || ^6.4.11 || ^7.1.4 || ^8.0) to address CVE-2024-50343 (GHSA-g3rh-rrhp-jhh9). If you still run Symfony Validator 4.x or unsupported 5.x / 6.x / 7.0.x lines, upgrade Symfony before updating this package.

    We also pinned PHPUnit to patched releases in development (GHSA-qrr6-mg7r-m243), added composer.lock, and set config.platform.php so locks stay reproducible. CI was adjusted (e.g. prefer-lowest on Symfony 5.4; PHP 8.3 with Symfony 7.1). The ZipCode constraint was aligned with current Symfony Constraint behavior where needed.

    To upgrade run:

    $ composer update barbieswimcrew/zip-code-validator

    See changes: v3.2.0...v4.0.0
    Documentation: https://github.com/barbieswimcrew/zip-code-validator/blob/v4.0.0/README.md

    Highlights:

    [SECURITY] Require patched symfony/validator for CVE-2024-50343; CI updates; ZipCode constraint alignment with Symfony Validator

    [SECURITY] Dev: PHPUnit patched versions; track composer.lock; config.platform.php for reproducible resolution

    Happy validating!

    Open source →
  3. v3.2.0 14 Feb 2026
    Release notes

    Hello Zipcode validators ;-)

    Thanks to @Pixelshaped the Zipcode Validator is now ready for the future! 🚀
    We added support for Symfony 8 and modernized the codebase to support PHP 8 Attributes with Named Arguments. This makes your code even cleaner and more readable.

    Example of the new syntax:

    #[ZipCode(iso: 'DE')]

    Don't worry, the old array syntax is still fully supported for backward compatibility!

    To upgrade run:

    $ composer update barbieswimcrew/zip-code-validator

    See changes: v3.1.5...v3.2.0
    Documentation: https://github.com/barbieswimcrew/zip-code-validator/blob/v3.2.0/README.md

    Highlights:

    [FEATURE] #66 Add Symfony 8 compatibility & Named Arguments support by @Pixelshaped

    Happy validating!

    Open source →
  4. v3.1.5 31 Jul 2025
    Release notes

    Hello Zipcode validators ;-)

    Thanks to @damiansakwinski the Zipcode Validator now accepts NA- prefix for Namibia's postal codes as well as CU- prefix for Cuban postal codes. Awesome!!!

    To upgrade run:

    $ composer update barbieswimcrew/zip-code-validator
    

    See changes: v3.1.4...v3.1.5

    Documentation: https://github.com/barbieswimcrew/zip-code-validator/blob/v3.1.5/README.md

    Highlights:

    [IMPROVEMENT] #62 Add Cuba (CU) support #62 by @damiansakwinski
    [IMPROVEMENT] #63 Add support for Namibia (NA) #64 by @damiansakwinski

    Happy validating!

    Open source →
  5. v3.1.4 09 Dec 2024
    Release notes

    Hello Zipcode validators ;-)

    Sorry for another minor fix... and thanks for that catch @dsbe-ak
    #59 (comment)

    To upgrade run:

    $ composer update barbieswimcrew/zip-code-validator
    See changes: v3.1.3...v3.1.4

    Documentation: https://github.com/barbieswimcrew/zip-code-validator/blob/v3.1.4/README.md

    Highlights:
    [FIX] #60 (@barbieswimcrew)

    Happy validating!

    Open source →
  6. v3.1.3 07 Dec 2024
    Release notes

    Hello Zipcode validators ;-)

    This minor fixes the deprecation warning

    Deprecated: ZipCodeValidator\Constraints\ZipCode::__construct(): Implicitly marking parameter $groups as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/vendor/barbieswimcrew/zip-code-validator/src/ZipCodeValidator/Constraints/ZipCode.php on line 23

    To upgrade run:

    $ composer update barbieswimcrew/zip-code-validator
    See changes: v3.1.2...v3.1.3

    Documentation: https://github.com/barbieswimcrew/zip-code-validator/blob/v3.1.3/README.md

    Highlights:
    [FIX] #59 Fix "Implicitly marking parameter $groups as nullable is deprecated" (#59) (@barbieswimcrew)

    Happy validating!

    Open source →
  7. v3.1.2 23 Jul 2024
    Release notes

    Hello Zipcode validators ;-)

    Thanks to @Kuller86 the Zipcode Validator now accepts MD- prefix for Moldova's postal codes. Awesome!!!

    To upgrade run:

    $ composer update barbieswimcrew/zip-code-validator
    

    See changes: v3.1.1...v3.1.2

    Documentation: https://github.com/barbieswimcrew/zip-code-validator/blob/v3.1.2/README.md

    Highlights:

    [IMPROVEMENT] #55 Allow MD- prefix for Moldova postal codes (@Kuller86)

    Happy validating!

    Open source →
  8. v3.1.1 18 Feb 2024
    Release notes

    Hello Zipcode validators ;-)

    Thanks to @Chris53897 effort, Zipcode Validator now relies on PHPUnit 11 as well as got testrun for PHP 8.3 and Symfony 7. Awesome!!!

    To upgrade run:

    $ composer update barbieswimcrew/zip-code-validator
    

    See changes: v3.1.0...v3.1.1

    Documentation: https://github.com/barbieswimcrew/zip-code-validator/blob/v3.1.1/README.md

    Highlights:

    [IMPROVEMENT] #52 chore: add testrun for PHP 8.3, symfony 7.0 (@Chris53897 )
    [IMPROVEMENT] #53 chore: allow phpunit 11 (@Chris53897 )

    Happy validating!

    Open source →
  9. v3.1.0 02 May 2023
    Release notes

    Hello Zipcode validators ;-)

    Thanks to @Chris53897 and @Pixelshaped for their contribution to this project. Thanks to their effort, Zipcode Validator can be used via Attributes from now on and relies on PHPUnit 10! Isn't that great?

    To upgrade run:

    $ composer update barbieswimcrew/zip-code-validator
    

    See changes: v3.0.0...v3.1.0

    Documentation: https://github.com/barbieswimcrew/zip-code-validator/blob/v3.1.0/README.md

    Highlights:

    Happy validating!

    Open source →
  10. v3.0.0 07 Feb 2023

    Nothing published for this version

  11. v2.0.2 24 Jul 2024
    Release notes

    Hello Zipcode validators ;-)

    Thanks to @Kuller86 the Zipcode Validator now accepts MD- prefix for Moldova's postal codes. Awesome!!!

    To upgrade run:

    $ composer update barbieswimcrew/zip-code-validator
    

    See changes: v2.0.1...v2.0.2

    Documentation: https://github.com/barbieswimcrew/zip-code-validator/blob/v2.0.2/README.md

    Highlights:

    [IMPROVEMENT] #57 Allow MD- prefix for Moldova postal codes (#55) (@Kuller86)

    Happy validating!

    Open source →
  12. v2.0.1 10 Apr 2022

    Nothing published for this version

  13. v2.0.0 22 Sep 2021

    Nothing published for this version

  14. v1.3.6 13 Sep 2021

    Nothing published for this version

  15. v1.3.5 28 Jun 2019

    Nothing published for this version

  16. v1.3.4 27 Jun 2019

    Nothing published for this version

  17. v1.3.3 31 May 2019

    Nothing published for this version

  18. v1.3.2 28 Feb 2019

    Nothing published for this version

  19. v1.3.1 12 Oct 2018

    Nothing published for this version

  20. v1.3.0 08 Oct 2018

    Nothing published for this version

  21. v1.2.1 01 Oct 2018

    Nothing published for this version

  22. v1.2.0 02 May 2018

    Nothing published for this version

  23. v1.1.4 26 Jan 2018

    Nothing published for this version

  24. v1.1.3 06 Dec 2017

    Nothing published for this version

  25. v1.1.2 21 Sep 2017

    Nothing published for this version

  26. v1.1.1 30 Jun 2017

    Nothing published for this version

  27. v1.1.0 06 Jun 2017

    Nothing published for this version

  28. v1.0.9 06 Jun 2017

    Nothing published for this version

  29. v1.0.8 05 Apr 2017

    Nothing published for this version

  30. v1.0.7 18 Oct 2016

    Nothing published for this version

  31. v1.0.6 05 Oct 2016

    Nothing published for this version

  32. v1.0.5 12 Sep 2016

    Nothing published for this version

  33. v1.0.4 16 Aug 2016

    Nothing published for this version

  34. 1.0.2 05 Aug 2016

    Nothing published for this version

  35. 1.0.0 05 Aug 2016

    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