2017 © Pedro Peláez
 

library address-normalization

Converts mailing addresses into a normalized format

image

khartnett/address-normalization

Converts mailing addresses into a normalized format

  • Thursday, December 14, 2017
  • by khartnett
  • Repository
  • 1 Watchers
  • 1 Stars
  • 58 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 107 % Grown

The README.md

Purpose, (*1)

A way to normalize US mailing addresses without the need for an external service. This is a port of the perl module Geo::StreetAddress::US originally written by Schuyler D. Erle., (*2)

Installation, (*3)

$composer require khartnett/address-normalization, (*4)

Usage, (*5)

<?php
 use Khartnett\Normalization;
 $n = new Normalization();
 $result = $n->parse('204 southeast Smith Street Harrisburg, or 97446');
 /* result:
 [
     "number" => "204",
     "street" => "Smith",
     "street_type" => "St",
     "unit" => "",
     "unit_prefix" => "",
     "suffix" => "",
     "prefix" => "SE",
     "city" => "Harrisburg",
     "state" => "OR",
     "postal_code" => "97446",
     "postal_code_ext" => null,
     "street_type2" => null,
     "prefix2" => null,
     "suffix2" => null,
     "street2" => null,
 ] */
 $string_result = $n->parse('204 southeast Smith Street Harrisburg, or 97446', true);
  /* string_result:
  "204 SE Smith St, Harrisburg, OR 97446"
  */

The Versions

14/12 2017

dev-master

9999999-dev

Converts mailing addresses into a normalized format

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Kieran Hartnett

address mailing normalization

14/12 2017

1.0.0

1.0.0.0

Converts mailing addresses into a normalized format

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Kieran Hartnett

address mailing normalization

14/12 2017

0.0.3

0.0.3.0

Converts mailing addresses into a normalized format

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Kieran Hartnett

address mailing normalization

29/05 2015

0.0.2

0.0.2.0

Converts mailing addresses into a normalized format

  Sources   Download

The Requires

  • php >=5.3.0

 

by Kieran Hartnett

address mailing normalization