Download the PHP package cdburgess/addressing-standards without Composer
On this page you can find all versions of the php package cdburgess/addressing-standards. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download cdburgess/addressing-standards
More information about cdburgess/addressing-standards
Files in cdburgess/addressing-standards
Download cdburgess/addressing-standards
More information about cdburgess/addressing-standards
Files in cdburgess/addressing-standards
Vendor cdburgess
Package addressing-standards
Short Description USPS Publication 28 compliant address normalization for Laravel / PHP
License MIT
Package addressing-standards
Short Description USPS Publication 28 compliant address normalization for Laravel / PHP
License MIT
Please rate this library. Is it a good library?
Informations about the package addressing-standards
Addressing Standards
USPS Publication 28 compliant address normalization for Laravel and plain PHP.
Takes messy, human-entered US addresses and returns a clean, standardized Address value object ready for mailing, storage, or further validation.
Installation
The service provider and facade are auto-discovered by Laravel.
Publish the config (optional):
Quick Start
Using the Facade
Using the Container
Array input
Address Object
The returned Address is immutable and provides:
| Method / Property | Description |
|---|---|
deliveryAddressLine() |
Standardized street line |
lastLine() |
City + State + ZIP(+4) |
toBlock() |
Multi-line mailpiece block |
toString() / __toString() |
Single-line representation |
toArray() |
All components, corrections, and completeness |
isComplete() |
Has delivery line + city + state + ZIP5 |
hasIncompleteSecondary() |
Designator present but required number missing |
isFullyQualified() |
Complete and no secondary problems |
wasCorrected() |
One or more standardization changes were applied |
completenessReport() |
Missing fields and correction list |
corrections |
Array of {field, from, to} changes |
Completeness report
What gets standardized
- Street suffixes to official USPS abbreviations (
STREETtoST,AVENUEtoAVE, and so on) - Directionals to
N,S,E,W,NE,NW,SE,SW - Secondary units to
APT,STE,BLDG,FL, and related designators - Secondary units that do not require a number (
BSMT,PH,FRNT, and similar) - Fallback
# 12when a number is present but no recognized designator is - State names to two-letter codes, including full names such as
Virginia - Uppercase formatting (Publication 28 preference)
- ZIP and ZIP+4 normalization
- PO Box
- Dual addresses on one line (street + PO Box → PO Box is used)
- Rural Route and Highway Contract, including obsolete
RFDandSTAR ROUTE - General Delivery
- Puerto Rico urbanization (
URB LAS GLADIOLAS) - Alphanumeric and fractional primary numbers (
123A,123 1/2) - Two-suffix streets (
MAIN AVENUE DRIVE→ streetMAIN AVENUE, suffixDR)
Testing
Or:
Roadmap / Limitations
- This package performs rule-based standardization per Publication 28.
- It does not perform CASS certification or live USPS delivery-point validation.
- Optional USPS Addresses API integration can be added later for ZIP+4 confirmation and DPV.
License
MIT
All versions of addressing-standards with dependencies
PHP Build Version
Package Version
The package cdburgess/addressing-standards contains the following files
Loading the files please wait ...