Releases: commerceguys/addressing
Releases · commerceguys/addressing
v2.0.0-beta1
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
v1.4.1
v1.4.0
- 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
Country list updated to CLDR v41.
Dropped support for PHP 7.1 and 7.2. Thanks @Chris53897!