recca0120 / twzipcode
twzipcode
Installs: 26 103
Dependents: 0
Suggesters: 0
Security: 0
Stars: 100
Watchers: 7
Forks: 15
Open Issues: 1
Requires
- php: >=5.5.9
- ext-zlib: *
- recca0120/lodash: ^1.1
Requires (Dev)
- mikey179/vfsstream: ^1.6
- mockery/mockery: ~0.9.4|~1.0
- nesbot/carbon: ~1.20|~2.0
- phpunit/phpunit: ~4.8|~5.4|~6.3|~7.0|~8.0|~9.0
README
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號