caxy/postal-code

Simple class to convert US postal codes to US states

Installs: 66

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 33

Forks: 0

Open Issues: 0

pkg:composer/caxy/postal-code

1.0.1 2015-09-21 17:26 UTC

This package is auto-updated.

Last update: 2025-09-22 08:56:35 UTC


README

This is a simple class to convert from a US ZIP code to a US state. The data comes from Wikipedia.

Usage

<?php

// Returns 'NY'
$state = \Caxy\PostalCode::toState('10271');

// Returns 'IL'
$state = \Caxy\PostalCode::toState('60607');