Skip to content

正規化台灣地址,並取得縣市、鄉鎮、區碼

License

Notifications You must be signed in to change notification settings

recca0120/twzipcode

Repository files navigation

TWZIPCODE 3 + 2

Total Downloads Latest Stable Version Latest Unstable Version License Monthly Downloads Daily Downloads Scrutinizer Code Quality Code Coverage

require __DIR__.'/vendor/autoload.php';

use Recca0120\Twzipcode\Zipcode;

$zipcode = Zipcode::parse('台北市中正區中華路1段25號');
echo $zipcode->zip3(); // 100
echo $zipcode->zip5(); // 10043;
echo $zipcode->county(); // 臺北市
echo $zipcode->district(); // 中正區
echo $zipcode->address(); // 臺北市中正區中華路1段25號
echo $zipcode->shortAddress(); //中華路1段25號

About

正規化台灣地址,並取得縣市、鄉鎮、區碼

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages