PHP Package: commerceguys/addressing

CommerceGuys PHP library for address management and normalization.

Current Version: 2.2.4
Last Updated: 2025-01-13
PHP Requirement: >=7.1
Dependencies: commerceguys/enum, commerceguys/zone, commerceguys/intl
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

CommerceGuys Addressing is a powerful PHP library that provides comprehensive tools for managing, parsing, and normalizing addresses. It helps developers handle address-related tasks efficiently and accurately. With built-in support for various address formats and international standards, this library simplifies address handling in web applications.

🔗 View on GitHub

Download Latest Version: 2.2.4

Download Download v2.2.4

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php

// Example from PHPlibraries.com
require_once 'libs/commerceguys/addressing/2.2.4/autoload.php';

use CommerceGuys\Addressing\Address;
use CommerceGuys\Addressing\AddressFormat;
use CommerceGuys\Addressing\AddressFormatRepository;
use CommerceGuys\Addressing\AddressNormalizer;
use CommerceGuys\Addressing\AddressNormalizerInterface;
use CommerceGuys\Addressing\AddressRepository;
use CommerceGuys\Addressing\AdministrativeArea;
use CommerceGuys\Addressing\Country;
use CommerceGuys\Addressing\CountryRepository;
use CommerceGuys\Addressing\Subdivision;
use CommerceGuys\Addressing\SubdivisionRepository;
use CommerceGuys\Addressing\Zone;
use CommerceGuys\Addressing\ZoneRepository;


$obj = new CommerceGuys\Addressing\Address();
echo "✅ Example created successfully.";

?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.