Zip Code Validator Versions Save

Constraint Class for international Zipcode Validation

v3.1.1

2 months ago

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] https://github.com/barbieswimcrew/zip-code-validator/pull/52 chore: add testrun for PHP 8.3, symfony 7.0 (@Chris53897 ) [IMPROVEMENT] https://github.com/barbieswimcrew/zip-code-validator/pull/53 chore: allow phpunit 11 (@Chris53897 )

Happy validating!

v3.1.0

1 year ago

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:

  • [IMPROVEMENT] #50 Add attribute support, fix uppercase issue with getter (@Pixelshaped )
  • [IMPROVEMENT] #49 chore: phpunit 10 (@Chris53897 )

Happy validating!

v3.0.0

1 year ago

Hi Zipcode-Validators! ;-)

Time marches on... With this release we dropped support for old PHP versions and adapt the code to the PHP 8+ realities and language features. Thanks to @Chris53897 for your help!

But please be aware that this might be some BREAKING CHANGE to your project.

To upgrade run:

$ composer update barbieswimcrew/zip-code-validator

See changes: v2.0.1...v3.0.0

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

Highlights:

  • [BC BREAK] #47 feat: drop support of php < 7, modernise code and tests, replace travis with github actions (@Chris53897 )

Happy validating!

v2.0.1

2 years ago

Hi Zipcode-Validators! ;-)

This release fixes deprecation issues occurring in PHP 8.1. Many thanks to @GenieTim to get that solved!

But please be aware that this might be some BREAKING CHANGE to your project.

To upgrade run:

$ composer update barbieswimcrew/zip-code-validator

See changes: v2.0.0...v2.0.1

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

Highlights:

  • [Bug] #46 Fix issue with deprecation error in PHP 8.1 (@GenieTim)

Happy validating!

v2.0.0

2 years ago

Hi Zipcode-Validators! ;-)

This release resolves a somewhat illogical implementation into thin air. Due to a design flaw, the Zipcode Validator did cause some violation even for empty values. To handle that we implemented the "ignoreEmpty" option some time ago. But thanks to @rimas-kudelis this is now history!

But please be aware that this might be some BREAKING CHANGE to your project.

To upgrade run:

$ composer update barbieswimcrew/zip-code-validator

See changes: v1.3.6...v2.0.0

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

Highlights:

  • [BC BREAK] #42 The validator will not validate empty strings and null values anymore. To disallow them use the Symfony stock NotNull or NotBlank constraint in addition to ZipCode. (@rimas-kudelis)

Happy validating!

v1.3.6

2 years ago

Improvement

v1.3.5

4 years ago

Bugfix

  • Fix Jamaican (JA) zipcode regex issues (aschempp)
  • Add invalid test cases to JA unit test (aschempp)

v1.3.4

4 years ago

Improvement

  • Thanks to Yanick the zip code regex pattern for Switzerland (CH) has been improved (Toflar)
  • Unit tests have been added to ensure the CH regex is working properly (Toflar)

v1.3.3

4 years ago

Improvement

  • Add zipcode regex for Jamaica JA as well as tests for JA (boxblinkracer)

v1.3.2

5 years ago

Improvement

  • Add zipcode regex for Panama PA as well as tests for PA (boxblinkracer)