caxy/postal-code

将美国邮政编码转换为美国州的简单类

1.0.1 2015-09-21 17:26 UTC

This package is auto-updated.

Last update: 2024-09-22 06:40:59 UTC


README

这是一个将美国ZIP代码转换为美国州的简单类。数据来自维基百科

用法

<?php

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

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