PHPackages                             wilzokch/php-malaysia-postcode-to-state - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. wilzokch/php-malaysia-postcode-to-state

ActiveProject[Templating &amp; Views](/categories/templating)

wilzokch/php-malaysia-postcode-to-state
=======================================

PHP library that convert Malaysia post code into state.

v1.0.5(7y ago)2716GPL-3.0-or-laterPHPPHP &gt;=5.4CI failing

Since Oct 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/wilzokch/php-malaysia-postcode-to-state)[ Packagist](https://packagist.org/packages/wilzokch/php-malaysia-postcode-to-state)[ RSS](/packages/wilzokch-php-malaysia-postcode-to-state/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (0)

PHP Library - Convert Malaysia Postal Code to State
===================================================

[](#php-library---convert-malaysia-postal-code-to-state)

[![php 5.5+](https://camo.githubusercontent.com/13d53008d1807cf5f2c84d8705bcb8aa04a01622fb87c60c52446c9e0afa3759/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d352e352b2d627269676874677265656e2e7376673f7374796c653d666c6174266c6f676f3d706870266c6162656c436f6c6f723d373737424234266c6f676f436f6c6f723d776869746526636f6c6f723d6c6967687467726579)](https://camo.githubusercontent.com/13d53008d1807cf5f2c84d8705bcb8aa04a01622fb87c60c52446c9e0afa3759/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d352e352b2d627269676874677265656e2e7376673f7374796c653d666c6174266c6f676f3d706870266c6162656c436f6c6f723d373737424234266c6f676f436f6c6f723d776869746526636f6c6f723d6c6967687467726579) [![author](https://camo.githubusercontent.com/a674d744ee237a8caddb39e1fcc65769e3149d9683fa1e26ec27c0b32696bedf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d6b63682d627269676874677265656e2e7376673f7374796c653d666c6174266c6f676f3d6269746275636b657426636f6c6f723d6c6967687467726579)](https://camo.githubusercontent.com/a674d744ee237a8caddb39e1fcc65769e3149d9683fa1e26ec27c0b32696bedf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d6b63682d627269676874677265656e2e7376673f7374796c653d666c6174266c6f676f3d6269746275636b657426636f6c6f723d6c6967687467726579)

This library will convert Malaysia Postal Code to State

Installation via "composer require"
-----------------------------------

[](#installation-via-composer-require)

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

Example
-------

[](#example)

```

    use Wilzokch\MalaysiaPostcodeToState\MyPostCode;

    $postCode = new MyPostCode('84000');

    echo $postCode->getState(); // you will get "Johor"

```

References
----------

[](#references)

1. [https://en.wikipedia.org/wiki/Postal\_codes\_in\_Malaysia](https://en.wikipedia.org/wiki/Postal_codes_in_Malaysia)
2.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

6

Last Release

2767d ago

PHP version history (2 changes)v1.0.0PHP &gt;=7.1

v1.0.3PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/ee5dd3aa62081a394432f952613192b4b3d7f3b5c5b81aaac05816cde2a90df3?d=identicon)[wilzokch](/maintainers/wilzokch)

---

Top Contributors

[![wilzokch](https://avatars.githubusercontent.com/u/8280365?v=4)](https://github.com/wilzokch "wilzokch (17 commits)")

---

Tags

composerpackagetemplate

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wilzokch-php-malaysia-postcode-to-state/health.svg)

```
[![Health](https://phpackages.com/badges/wilzokch-php-malaysia-postcode-to-state/health.svg)](https://phpackages.com/packages/wilzokch-php-malaysia-postcode-to-state)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
