Skip to content

Releases: commerceguys/addressing

v2.0.0-beta1

18 Apr 20:03
Compare
Choose a tag to compare
v2.0.0-beta1 Pre-release
Pre-release

Major changes

  • Dropped PHP 7 support, started using PHP 8 language features.
  • Added address line 3 to the address data model.
  • Subdivisions are now keyed by ISO code when one is available. See the "Updating data" section for more information.
  • Address formats and subdivisions are no longer auto-generated from Google's dataset, allowing us to accept community changes and bug reports.
  • Updated address formats / subdivisions for 20 countries:
    • The "additional name" field is now visible for countries that use patronymics.
    • Defined subdivisions for Costa Rica (CR), Estonia (EE) and Zimbabwe (ZW).
    • Rebuilt subdivisions for Bahamas (BS) and Philippines (PH).
    • Additional localities defined for South Korea (KR) and Chile (CL).
  • Country list (and translations) updated to CLDR v43.

Updating data

The library now ships with a SubdivisionUpdater.

It can be used in two ways:
a) Call SubdivisionUpdater::updateValue($countryCode, $value) to update an address's administrativeArea in a postLoad() event or equivalent place.

b) Use SubdivisionUpdater::getUpdateMap() to get the full list of updates, and use it to generate update queries for your data.

v1.4.2

15 Feb 10:16
Compare
Choose a tag to compare
  • Update to CLDR v42.
  • Allow doctrine/collections ^2.0
  • Fixed Symfony missing type spec messages
  • Fixed PHP 8.1 deprecation warning

v1.4.1

09 Aug 11:44
Compare
Choose a tag to compare

Quick followup to v.1.4.0, improving BC in the Address class by making the type hints nullable.

v1.4.0

08 Aug 15:10
Compare
Choose a tag to compare
  • Now using PHP 7.3 language features and typehints. Thanks @Chris53897!
  • Allows usage with the Symfony 6 validator.
  • Updated subdivisions for CN, ID, KR, TW.

v1.3.0

08 Apr 13:09
Compare
Choose a tag to compare

Country list updated to CLDR v41.

Dropped support for PHP 7.1 and 7.2. Thanks @Chris53897!

v1.2.2

30 Oct 12:45
Compare
Choose a tag to compare

Update to CLDR v40.

v1.2.1

17 May 08:09
Compare
Choose a tag to compare

Country list updated to CLDR v39.

Updated subdivisions for India.

v1.2.0

14 Mar 20:24
Compare
Choose a tag to compare

Drops PHP 7.0 support.

Updates subdivisions for CL, CN, IR, KR, RU and address formats for BH, BY, KH, NA.

v1.1.1

18 Jan 20:55
Compare
Choose a tag to compare

Updated the CLDR country list to v38.
Updated the filtering of CLDR locales, now matches CLDR's "modern" locale list.

v1.1.0

29 Nov 18:56
Compare
Choose a tag to compare

Deprecates subdivision-level postal code validation. See #147.

Updates the address format for Ireland.
Updates the ISO code and postal code pattern for Sud Sardegna (Italy).