PHPackages                             wasddsaw/pilihan-raya - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. wasddsaw/pilihan-raya

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

wasddsaw/pilihan-raya
=====================

A library for list of Malaysian electoral districts

00PHP

Since Jan 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/wasddsaw/Kawasan-Pilihan-Raya-Malaysia-API)[ Packagist](https://packagist.org/packages/wasddsaw/pilihan-raya)[ RSS](/packages/wasddsaw-pilihan-raya/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Kawasan Pilihan Raya Malaysia API
=================================

[](#kawasan-pilihan-raya-malaysia-api)

A library for list of Malaysian electoral districts

Installation
------------

[](#installation)

Use [Composer](https://getcomposer.org/) for installation

```
composer require wasddsaw/pilihan-raya
```

Usage
-----

[](#usage)

Import library inside project

```
// import
require_once './vendor/autoload.php';

// create object
$object = new \PilihanRaya\PilihanRaya();

// print result
echo "";
print_r($object->constituencies()['constituencies']['Malaysia']['Perlis']);
echo "";
```

Sample Output

```
Array
(
    [Padang Besar] => Array
        (
            [code] => P.001
            [name] => Padang Besar
            [duns] => Array
                (
                    [0] => Array
                        (
                            [code] => N.01
                            [name] => Titi Tinggi
                        )

                    [1] => Array
                        (
                            [code] => N.02
                            [name] => Beseri
                        )

                    [2] => Array
                        (
                            [code] => N.03
                            [name] => Chuping
                        )

                    [3] => Array
                        (
                            [code] => N.04
                            [name] => Mata Ayer
                        )

                    [4] => Array
                        (
                            [code] => N.05
                            [name] => Santan
                        )

                )

        )

)
```

Changelog
---------

[](#changelog)

Update 15/01/2021

- Initial project creation

Support
-------

[](#support)

1. Ashraf &amp; Qayyum
2. Date : 15-01-2021

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/30dd4c8251d8ede033c3c001f669728c138a4f61696460fc3506fdfbd124ddca?d=identicon)[wasddsaw](/maintainers/wasddsaw)

---

Top Contributors

[![wasddsaw](https://avatars.githubusercontent.com/u/23319632?v=4)](https://github.com/wasddsaw "wasddsaw (7 commits)")

### Embed Badge

![Health badge](/badges/wasddsaw-pilihan-raya/health.svg)

```
[![Health](https://phpackages.com/badges/wasddsaw-pilihan-raya/health.svg)](https://phpackages.com/packages/wasddsaw-pilihan-raya)
```

###  Alternatives

[thalidzhokov/country-codes

CountryCodes PHP Class to get array of countries with ISO 3166-1 alpha-2, ISO 3166-1 alpha-3, ISO 3166-1 numeric and ISD codes it can provide following information related to country

13111.5k](/packages/thalidzhokov-country-codes)

PHPackages © 2026

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