Skip to content
正規化台灣地址,並取得縣市、鄉鎮、區碼
PHP
Branch: master
Clone or download
Latest commit 113f380 Feb 9, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
resources update Mar 8, 2017
src Apply fixes from StyleCI Feb 9, 2018
tests
.editorconfig first commit Jun 5, 2016
.gitattributes update travis Sep 5, 2016
.gitignore refactor Dec 25, 2016
.nitpick.json first commit Jun 5, 2016
.php_cs Update .php_cs Jun 16, 2017
.scrutinizer.yml update Mar 5, 2017
.styleci.yml update Mar 5, 2017
.travis.yml Update .travis.yml Feb 9, 2018
LICENSE first commit Jun 5, 2016
README.md update Mar 5, 2017
appveyor.yml Create appveyor.yml Mar 8, 2017
composer.json Update composer.json Feb 9, 2018
phpcs.xml first commit Jun 5, 2016
phpunit.xml.dist update travis Sep 5, 2016
ruleset.xml

README.md

TWZIPCODE 3 + 2

StyleCI Build Status 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(); // 1004;
echo $zipcode->county(); // 臺北市
echo $zipcode->district(); // 中正區
echo $zipcode->address(); // 臺北市中正區中華路1段25號
echo $zipcode->shortAddress(); //中華路1段25號
You can’t perform that action at this time.