Registry / utility / commerceguys-addressing

commerceguys-addressing

JSON →
library2.2.5phppackagistunverified

Addressing library powered by CLDR and Google's address data for address formatting and validation.

composer require commerceguys/addressing
INSTALL
IMPORT
SIG · COMMERCEGUYS-ADDRE
C
commerceguys-addressing
utilityphpv2.2.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Address
use CommerceGuys\Addressing\Address;

Create and format an address.

use CommerceGuys\Addressing\Address; $address = new Address(); $address = $address ->withCountryCode('US') ->withLocality('Washington') ->withAddressLine1('1600 Pennsylvania Ave NW'); echo $address->__toString();
Debug
Known issues
breakingRequires PHP 7.1 or higher.
fix
Upgrade PHP to version 7.1+.
affects: <2.0.0
Upgrade
Version history
2.2.5latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
commerceguys-addressing — pip install commerceguys-addressing · libregistry