PackageTrack
Sign in Get early access

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 2026
2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 48
  1. v2.3.1 23 Aug 2026
    Release notes

    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

    Open source →
  2. v2.3.0 23 Aug 2026
    Release notes

    Address formats now declare which fields have subdivision data

    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.

    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 State suffix 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 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.
    • 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 locale now default local_name to name, for less verbosity.
    • Malformed subdivision definition files are ignored instead of raising errors (#246).
    • 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: v2.2.5...v2.3.0

    Open source →
  3. v2.2.5 05 Jan 2026
    Release notes

    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

    Full Changelog: v2.2.4...v2.2.5

    Open source →
  4. v2.2.4 13 Jan 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v2.2.3...v2.2.4

    Open source →
  5. v2.2.3 11 Nov 2024
    Release notes

    Update to CLDR v46.

    Full Changelog: v2.2.2...v2.2.3

    Open source →
  6. v2.2.2 12 Jul 2024
    Release notes

    What's Changed

    • Remove unneeded files from the archives by @stof in #215

    New Contributors

    • @stof made their first contribution in #215

    Full Changelog: v2.2.1...v2.2.2

    Open source →
  7. v2.2.1 04 Jul 2024
    Release notes

    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

    Full Changelog: v2.2.0...v2.2.1

    Open source →
  8. v2.2.0 25 Feb 2024
    Release notes Open source →
  9. v2.1.1 28 Nov 2023
    Release notes

    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.
    Open source →
  10. v2.1.0 31 Oct 2023
    Release notes
    • 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.

    Open source →
  11. v2.0.1 02 Jul 2023

    Nothing published for this version

  12. v2.0.0 19 Jun 2023

    Nothing published for this version

  13. v2.0.0-rc1 17 May 2023 pre-release

    Nothing published for this version

  14. v2.0.0-beta2 07 May 2023 pre-release

    Nothing published for this version

  15. v2.0.0-beta1 18 Apr 2023 pre-release

    Nothing published for this version

  16. v1.4.2 15 Feb 2023

    Nothing published for this version

  17. v1.4.1 09 Aug 2022

    Nothing published for this version

  18. v1.4.0 08 Aug 2022

    Nothing published for this version

  19. v1.3.0 08 Apr 2022

    Nothing published for this version

  20. v1.2.2 30 Oct 2021

    Nothing published for this version

  21. v1.2.1 17 May 2021

    Nothing published for this version

  22. v1.2.0 14 Mar 2021

    Nothing published for this version

  23. v1.1.1 05 Dec 2020

    Nothing published for this version

  24. v1.1.0 29 Nov 2020

    Nothing published for this version

  25. v1.0.9 12 Sep 2020

    Nothing published for this version

  26. v1.0.8 26 May 2020

    Nothing published for this version

  27. v1.0.7 24 Jan 2020

    Nothing published for this version

  28. v1.0.6 21 Oct 2019

    Nothing published for this version

  29. v1.0.5 27 Jun 2019

    Nothing published for this version

  30. v1.0.4 31 May 2019

    Nothing published for this version

  31. v1.0.3 31 Mar 2019

    Nothing published for this version

  32. v1.0.2 21 Oct 2018

    Nothing published for this version

  33. v1.0.1 17 Aug 2018

    Nothing published for this version

  34. v1.0.0 23 May 2018

    Nothing published for this version

  35. v1.0.0-beta5 16 Feb 2018 pre-release

    Nothing published for this version

  36. v1.0.0-beta4 28 Dec 2017 pre-release

    Nothing published for this version

  37. v1.0.0-beta3 20 Apr 2017 pre-release

    Nothing published for this version

  38. v1.0.0-beta2 07 Dec 2016 pre-release

    Nothing published for this version

  39. v1.0.0-beta1 26 Sep 2016 pre-release

    Nothing published for this version

  40. v0.8.4 05 Sep 2016

    Nothing published for this version

  41. v0.8.3 04 Aug 2016

    Nothing published for this version

  42. v0.8.2 24 Dec 2015

    Nothing published for this version

  43. v0.8.1 08 Oct 2015

    Nothing published for this version

  44. v0.7.1 25 Aug 2015

    Nothing published for this version

  45. v0.8 05 Oct 2015

    Nothing published for this version

  46. v0.7 29 Jun 2015

    Nothing published for this version

  47. v0.6 11 Mar 2015

    Nothing published for this version

  48. v0.5 06 Feb 2015

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive