Download the PHP package gmaniac/us-address-normalization without Composer
On this page you can find all versions of the php package gmaniac/us-address-normalization. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gmaniac/us-address-normalization
More information about gmaniac/us-address-normalization
Files in gmaniac/us-address-normalization
Package us-address-normalization
Short Description US address normalization and hashing library
License MIT
Homepage https://github.com/gmaniac/us-address-normalization-php
Informations about the package us-address-normalization
US Address Normalization
A PHP library to normalize and hash US addresses without requiring an external service. This is the PHP implementation of us-address-normalization (TypeScript).
Based on the Perl module Geo::StreetAddress::US originally written by Schuyler D. Erle.
Purpose
The main purpose of this package is as the first layer of address normalization and standardization. Recommended use is to pre-parse/normalize an address and compare to an existing cache/record set using the hash functions.
Limitations
This is a basic normalizer. It realistically only handles US-based addresses, and should not be considered dependable for strict address-to-address comparison. This normalizer does not verify the validity of the address! If you are dependent on accurate addresses, you should use a 3rd party service to verify addresses.
Installation
Usage
Normalizing
Comparing
Hashing
Three hash methods are available for different comparison needs:
For consistent hashing when starting with pre-validated address components:
Formatting
Parsing from Components
Configuration Options
Running Tests
Related Projects
- us-address-normalization - TypeScript implementation
Attribution
This project builds upon work from:
License
MIT