Part of the Address ecosystem · 23 projects
This module provides a robust way to store, validate, and display international postal addresses. It includes features for country and address formats for over 200 countries, along with detailed subdivisions for many of them, and supports the creation of custom zones for shipping or tax purposes. The address data model follows the OASIS eXtensible Address Language (xAL) standard.
Provides functionality for storing, validating and displaying international postal addresses.
The Drupal 8 heir to the addressfield module, powered by the commerceguys/addressing library.
Features:
- Address field type and form element
- Country field type and form element
- Zone field type and form element
- Address formats for 200 countries
- Subdivisions (administrative areas, localities, dependent localities) for 60 countries
- Subdivision translations for all of the parent country's (i.e Canada, Switzerland) official languages.
- Country list with translations for over 200 locales, provided by CLDR
Zones are territorial groupings often used for shipping or tax purposes. They can match countries, subdivisions (states/provinces/municipalities), postal codes. For example: "California and Nevada", "France and Monaco", "Germany and a set of Austrian postal codes".
Address data model
Each address can have the following properties:
- Given name (First name)
- Additional name (Middle name / Patronymic)
- Family name (Last name)
- Organization
- Address line 1
- Address line 2
- Address line 3 (2.0.x only)
- Postal code
- Sorting code
- Dependent Locality (Neighborhood / Suburb)
- Locality (City)
- Administrative area (State / Province)
- Country
Property names follow the OASIS eXtensible Address Language (xAL) standard.
Installation
Since the module requires an external library, Composer or Ludwig must be used.
Composer
If your site is managed via Composer, use Composer to download the module, which will also download the required library:
composer require "drupal/address ^2.0"
^2.0 downloads the latest release, use 2.0.x-dev to get the -dev release instead.
Use composer update drupal/address --with-dependencies to update to a new release.
Ludwig
Otherwise, use Ludwig which will allow you to manage the required libraries without Composer:
Ludwig Installation and Usage
Maintenance of Ludwig managed modules
Note that Composer is recommended whenever possible.
Ask your assistant about Address
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- field Drupal core
Required by
33 tracked projects depend on this one
- Commerce Core 40,362 sites
- Address Map (& Directions) Link 2,806 sites
- Acquia Drupal Starter Kit Place 1,423 sites
- Address Display 1,249 sites
- LocalGov Paragraphs 904 sites
- Address Suggestion 297 sites
- Commerce Zones 127 sites
- Address Static Map 77 sites
- Commerce Promo Bar 63 sites
- Address autocomplete (with Photon API) 57 sites
- GraphQL Address 35 sites
- Selective Better Exposed Filters for Address 20 sites
- Contacts 19 sites
- Social Geolocation 19 sites
- Address USPS Validation Widget 15 sites
- Sector Events 10 sites
- Address for Indonesia 8 sites
- Rocketship event 8 sites
- Address DE 5 sites
- Commerce EasyTransac 4 sites
- DonorPerfect 3 sites
- AddressField CR 1 sites
- Privacy Document World Map
- RaiseDonors
- Dominican Catalogus
- Smart Store
- ECA Address
- Address Processor
- Cforge
- address autocomplete suggestion
- Btester Custom Block Content
- Address for Luxembourg
- Btester CRM
More in the Address ecosystem
Most installed first
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 2.0.0-beta2 | Pre-release | 9–10 | PHP ^8.0 | Jul 1, 2023 | |
| 2.0.0-beta1 | Pre-release | 9–10 | PHP ^8.0 | Jun 2, 2023 | |
| 2.0.x-dev | Dev | 9–11 | PHP ^8.0 | May 21, 2023 | |
| 8.x-1.12 | Stable | 9–10 | PHP ^7.3 || ^8.0 | May 21, 2023 |