commerceguys/addressing
Addressing library powered by CLDR and Google's address data.
v2.3.1
34M downloads/mo
#767 most downloaded on Packagist
commerceguys/addressing
What this package is like to depend on
Last release today
23 Aug 2026
Release timing varies
gaps range from 1 weeks to 12 months
Some releases are documented
notes for 10 of 40 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
48 releases · first in 2015
3 releases in the last 12 months
see the full history below
Release timeline
48 releases · Feb 2015 to Aug 2026Releases
latest 48-
v2.3.123 Aug 2026Release notes
Open source →Two fixes for bugs introduced in v2.3.0:
- getSubdivisionDepth() returned an error for some address formats due to a lack of a default value.
- Guatemala (GT) subdivisions were not wired in (missing
subdivision_data_fields).
Full Changelog: v2.3.0...v2.3.1
-
v2.3.023 Aug 2026Release notes
Open source →Address formats now declare which fields have subdivision data
subdivision_depthhas been replaced bysubdivision_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'],
AddressFormatnow hasgetSubdivisionDataFields(), replacinggetSubdivisionDepth()which is now deprecated. Custom definitions usingsubdivision_depthare still accepted and converted automatically.New subdivisions
- Great Britain — the 217 counties from ISO 3166-2:GB, keyed by ISO code, with Welsh names as translations
- Guatemala — the 22 departments, contributed by @jgalindosl (#242).
Data corrections
- AE - optional city field added; the missing hamza restored in the Umm Al Quwain local name.
- CO - spelling of Guainía.
- IT - province list updated and sorted alphabetically, thanks to @McAle16 (#237).
- NG-— the
Statesuffix dropped from Ogun. - PE - administrative areas are now labelled as regions, matching ISO 3166-2:PE.
- RU - the Udmurt Republic now uses its official name.
- TH - romanization fixed for Chumphon, Phatthalung and Suphan Buri; the changwat prefix
dropped from the Bueng Kan local name. - TR - Afyon renamed to Afyonkarahisar.
- VE -
Distrito Federalrenamed toDistrito Capital, its official and ISO 3166-2 name since
1999; La Guaira moved to its alphabetical position after the rename from Vargas. - VN - the city prefix dropped from the Ho Chi Minh local name.
Other improvements
- Reworked DefaultFormatter's logic for rendering empty fields, fixing bugs where separators
were sometimes left behind (affecting CO, GT, JP, MX, PY, TR, UY, VE). - Subdivision definitions with a
localenow defaultlocal_nametoname, for less verbosity. - Malformed subdivision definition files are ignored instead of raising errors (#246).
PostalCodeHelperaccepts modifiers in regular expression rules, so/ZE[0-9]/iworks (#164).doctrine/collections3 is now allowed, thanks to @Chris53897 (#241).SubdivisionUpdatermappings for Vietnam now matchVN.json, thanks to @eugene-brit (#240), and cover the VN renames shipped in v2.2.5.
Full Changelog: v2.2.5...v2.3.0
-
v2.2.505 Jan 2026Release notes
Open source →What's Changed
- CLDR v47 and v48
- Improved CLDR country generation script (now fully automated).
- Update Vietnam subdivisions by @lenamsoft in #230
- ci: add tests for PHP 8.5 by @Chris53897 in #233
- ci: allow symfony/validator 8 (dev) by @Chris53897 in #234
New Contributors
- @lenamsoft made their first contribution in #230
Full Changelog: v2.2.4...v2.2.5
-
v2.2.413 Jan 2025Release notes
Open source →What's Changed
- PHP 8.4 support: switch implicit nullable types to explicit by @NickDickinsonWilde in #221
New Contributors
- @NickDickinsonWilde made their first contribution in #221
Full Changelog: v2.2.3...v2.2.4
-
v2.2.311 Nov 2024 -
v2.2.212 Jul 2024 -
v2.2.104 Jul 2024Release notes
Open source →What's Changed
- Update to CLDR v45.
- Correct suffixes for ukrainian region names (#214)
- Update UA subdivisions to follow the latest romanization system (and match ISO).
New Contributors
- @vladdancer made their first contribution in #214
Full Changelog: v2.2.0...v2.2.1
-
v2.2.025 Feb 2024Release notes
Open source →API improvements:
- Allow address formats to declare default values.
- Allow turning off postal code validation in AddressFormatConstraint.
Address format updates:
- Singapore lacks city/locality field.
- Update subdivisions for India (IN).
- Add missing Indonesian (ID) provinces: PD, PE, PS, PT.
- Update subdivisions for Philippines (PH).
- Chile's administrative areas are called regions, not provinces.
- Simplify the postal code pattern for Peru (PE).
- Make the administrative area required for BB, CL, CV, EG, IR, KI, MY, PE, TH, VN
-
v2.1.128 Nov 2023Release notes
Open source →Compatible with Symfony 7.0.
Address format changes:
- Use the Town/City locality type for New Zealand.
- Rebuild the address format for Kazakhstan.
- Add subdivisions for Kazakhstan.
- When uppercasing address lines 1 and 2, uppercase line 3 as well.
-
v2.1.031 Oct 2023Release notes
Open source →- Updated to CLDR v44.
- Fixed the reported currency for countries CU and VG.
- UK locality_type is now town_city (#200).
Note for integrators: a new locality type was added.
-
v2.0.102 Jul 2023Nothing published for this version
-
v2.0.019 Jun 2023Nothing published for this version
-
v2.0.0-rc117 May 2023 pre-releaseNothing published for this version
-
v2.0.0-beta207 May 2023 pre-releaseNothing published for this version
-
v2.0.0-beta118 Apr 2023 pre-releaseNothing published for this version
-
v1.4.215 Feb 2023Nothing published for this version
-
v1.4.109 Aug 2022Nothing published for this version
-
v1.4.008 Aug 2022Nothing published for this version
-
v1.3.008 Apr 2022Nothing published for this version
-
v1.2.230 Oct 2021Nothing published for this version
-
v1.2.117 May 2021Nothing published for this version
-
v1.2.014 Mar 2021Nothing published for this version
-
v1.1.105 Dec 2020Nothing published for this version
-
v1.1.029 Nov 2020Nothing published for this version
-
v1.0.912 Sep 2020Nothing published for this version
-
v1.0.826 May 2020Nothing published for this version
-
v1.0.724 Jan 2020Nothing published for this version
-
v1.0.621 Oct 2019Nothing published for this version
-
v1.0.527 Jun 2019Nothing published for this version
-
v1.0.431 May 2019Nothing published for this version
-
v1.0.331 Mar 2019Nothing published for this version
-
v1.0.221 Oct 2018Nothing published for this version
-
v1.0.117 Aug 2018Nothing published for this version
-
v1.0.023 May 2018Nothing published for this version
-
v1.0.0-beta516 Feb 2018 pre-releaseNothing published for this version
-
v1.0.0-beta428 Dec 2017 pre-releaseNothing published for this version
-
v1.0.0-beta320 Apr 2017 pre-releaseNothing published for this version
-
v1.0.0-beta207 Dec 2016 pre-releaseNothing published for this version
-
v1.0.0-beta126 Sep 2016 pre-releaseNothing published for this version
-
v0.8.405 Sep 2016Nothing published for this version
-
v0.8.304 Aug 2016Nothing published for this version
-
v0.8.224 Dec 2015Nothing published for this version
-
v0.8.108 Oct 2015Nothing published for this version
-
v0.7.125 Aug 2015Nothing published for this version
-
v0.805 Oct 2015Nothing published for this version
-
v0.729 Jun 2015Nothing published for this version
-
v0.611 Mar 2015Nothing published for this version
-
v0.506 Feb 2015Nothing published for this version