wilzokch/php-malaysia-postcode-to-state

PHP library that convert Malaysia post code into state.

v1.0.5 2018-10-11 07:49 UTC

This package is auto-updated.

Last update: 2024-04-12 14:51:39 UTC


README

php 5.5+ author

This library will convert Malaysia Postal Code to State

Installation via "composer require"

    composer require wilzokch/php-malaysia-postcode-to-state

Example


    use Wilzokch\MalaysiaPostcodeToState\MyPostCode;
    
    $postCode = new MyPostCode('84000');
    
    echo $postCode->getState(); // you will get "Johor" 

References

  1. https://en.wikipedia.org/wiki/Postal_codes_in_Malaysia
  2. https://track.pos.com.my/postal-services/quick-access/?postcode-finder