Skip to content

Releases: stefanzweifel/php-swiss-cantons

v5.1.0

13 Nov 18:50
7bd2517
Compare
Choose a tag to compare

Added

  • Add Support for PHP 8.4 (#53)

v5.0.2

27 May 18:29
a83b2a5
Compare
Choose a tag to compare

Fixed

  • Add NotUniqueCantonException (#50)

v5.0.1

26 May 16:14
d0d5239
Compare
Choose a tag to compare

Changed

  • Add Github Actions Workflow to update City dataset automatically (#48)

Fixed

  • Ignore Versoix VD in dataset (#49)

v5.0.0

26 May 15:23
9ea3da5
Compare
Choose a tag to compare

Breaking Changes

Public

  • The signature of getByZipcode() changed. The method now returns an array of possible Cantons instead of the first Canton that matched. (Some zipcodes can belong to multiple cantons. For example 1290)
  • A new getByZipcodeAndCity() method has been added that accepts a zipcode and optionally a city name to drill down the search further.

Internal

  • ZipcodeSearch-class has been renamed to CitySearch
  • zipcodes.json has been renamed to cities.json

Added

  • Update cities.json dataset (#47)
  • Handle multiple cities and cantons per zipcode (#47)

Changed

  • Replace Psalm with Phpstan (#45)

v4.4.0

16 Oct 12:35
a7f66ee
Compare
Choose a tag to compare

Added

  • Add Support for PHP 8.3 (#44)

v4.3.0

16 Apr 12:47
0bda6ee
Compare
Choose a tag to compare

Removed

  • Drop Support for PHP versions below PHP 8.2 (#43)
  • Add Support for Phpunit v10 (#42)

4.2.0

29 Oct 05:50
Compare
Choose a tag to compare

Added

  • Support for PHP 8.2 (#40)

4.1.0

24 Oct 08:55
Compare
Choose a tag to compare

Changed

4.0.0

25 Apr 12:32
Compare
Choose a tag to compare

Note: The public API of the package didn't change, but the zipcodes dataset now uses data from the Swiss Post (instead of the Swiss cadastral system website). The detection of the canton for a zipcode still works the same as before.

If you've been using zipcodes.json directly, please see #38 for details.

Changed

  • Update Zipcodes Dataset to 2021 #38

3.1.0

01 Nov 12:54
Compare
Choose a tag to compare

Added

  • Add Support for PHP 8 #36