require __DIR__.'/vendor/autoload.php';
use Recca0120\Twzipcode\Zipcode;
$zipcode = Zipcode::parse('台北市中正區中華路1段25號');
echo $zipcode->zip3(); // 100
echo $zipcode->zip5(); // 1004;
echo $zipcode->county(); // 臺北市
echo $zipcode->district(); // 中正區
echo $zipcode->address(); // 臺北市中正區中華路1段25號
echo $zipcode->shortAddress(); //中華路1段25號
forked from recca0120/twzipcode
-
Notifications
You must be signed in to change notification settings - Fork 0
正規化台灣地址,並取得縣市、鄉鎮、區碼
License
marcoyan0814/twzipcode
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
正規化台灣地址,並取得縣市、鄉鎮、區碼
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- PHP 100.0%