commerceguys/addressing
A PHP 8+ addressing library powered by CLDR and Google's address data. It provides address formats for 200+ countries, subdivisions, translations, HTML/plain-text formatting, validation via symfony/validator, and zones.
Full Changelog: https://github.com/commerceguys/addressing/compare/v2.3.1...v2.3.2
Two fixes for bugs introduced in v2.3.0:
subdivision_data_fields).Full Changelog: https://github.com/commerceguys/addressing/compare/v2.3.0...v2.3.1
subdivision_depth has been replaced by subdivision_data_fields, which names the fields directly instead of encoding them as a count (#213):
// Before: 1 meant "administrative areas", 2 meant "administrative areas and localities".
'subdivision_depth' => 1,
// After.
'subdivision_data_fields' => ['administrativeArea'],
AddressFormat now has getSubdivisionDataFields(), replacing getSubdivisionDepth() which is now deprecated. Custom definitions using subdivision_depth are still accepted and converted automatically.
State suffix dropped from Ogun.Distrito Federal renamed to Distrito Capital, its official and ISO 3166-2 name since
1999; La Guaira moved to its alphabetical position after the rename from Vargas.locale now default local_name to name, for less verbosity.PostalCodeHelper accepts modifiers in regular expression rules, so /ZE[0-9]/i works (#164).doctrine/collections 3 is now allowed, thanks to @Chris53897 (#241).SubdivisionUpdater mappings for Vietnam now match VN.json, thanks to @eugene-brit (#240), and cover the VN renames shipped in v2.2.5.Full Changelog: https://github.com/commerceguys/addressing/compare/v2.2.5...v2.3.0
Full Changelog: https://github.com/commerceguys/addressing/compare/v2.2.4...v2.2.5
Full Changelog: https://github.com/commerceguys/addressing/compare/v2.2.3...v2.2.4
Update to CLDR v46.
Full Changelog: https://github.com/commerceguys/addressing/compare/v2.2.2...v2.2.3
Full Changelog: https://github.com/commerceguys/addressing/compare/v2.2.1...v2.2.2
Full Changelog: https://github.com/commerceguys/addressing/compare/v2.2.0...v2.2.1
API improvements:
Address format updates:
Compatible with Symfony 7.0.
Address format changes:
Note for integrators: a new locality type was added.
Changes since v2.0.0-rc1:
Changes since v1.4.3:
Changes since v2.0.0-beta2:
Please see the v2.0.0-beta1 release notes for a list of all v2.0.0 changes.
Changes since v2.0.0-beta1:
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.
Quick followup to v.1.4.0, improving BC in the Address class by making the type hints nullable.
Country list updated to CLDR v41.
Dropped support for PHP 7.1 and 7.2. Thanks @Chris53897!
Update to CLDR v40.
Country list updated to CLDR v39.
Updated subdivisions for India.
Drops PHP 7.0 support.
Updates subdivisions for CL, CN, IR, KR, RU and address formats for BH, BY, KH, NA.
Updated the CLDR country list to v38. Updated the filtering of CLDR locales, now matches CLDR's "modern" locale list.
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).
Update the country list to CLDR v37.
Dropped PHP5 support. Added the canton administrative area type.
Update the country list to CLDR v36.
Update the country list to CLDR v35.1
Update the dataset (NA/RO address formats, AU/IN/KR subdivisions)
Updated countries to CLDR v35.
Updated subdivisions for Nicaragua.
Improved handling of unknown countries in DefaultFormatter.
Updated countries to CLDR v34.
Updated the dataset (BY/HM/KZ/SY address formats; CU/CN/IR/MX/PE/PH subdivisions)
How can I help you explore Laravel packages today?