PHPackages                             disapamok/srilanka-cities - 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. disapamok/srilanka-cities

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

disapamok/srilanka-cities
=========================

This has included Sri Lanka's all the provinces, districts, and cities in a PHP array

83133PHP

Since Feb 6Pushed 3y ago1 watchersCompare

[ Source](https://github.com/disapamok/sri-lanka-provinces-districts-cities-php-array)[ Packagist](https://packagist.org/packages/disapamok/srilanka-cities)[ RSS](/packages/disapamok-srilanka-cities/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Sri Lanka's provinces, districts, and cities in PHP array.
==========================================================

[](#sri-lankas-provinces-districts-and-cities-in-php-array)

This has included Sri Lanka's all the provinces, districts, and cities in a PHP array. Developers can use this class when they do want to let their visitors select their exact city.

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

[](#installation)

Via composer.

```
composer require disapamok/srilanka-cities
```

Usage
-----

[](#usage)

```
use Disapamok\Modules\SriLanka;

public function exampleFunction(){
    return SriLanka::getProvinces(); // Returns all provinces
    return SriLanka::getDiscricts('Province'); // Returns disdricts of a province
    return SriLanka::getCities('District'); // Returns cities of a district
}
```

Contributing
------------

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Author URL: [disapamok.com](http://disapamok.com)

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity23

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/88b7b77bd7a34af719fe53b51445408664d350df92da8c72ac729d3623bcd15d?d=identicon)[disapamok](/maintainers/disapamok)

---

Top Contributors

[![disapamok](https://avatars.githubusercontent.com/u/7949612?v=4)](https://github.com/disapamok "disapamok (20 commits)")

### Embed Badge

![Health badge](/badges/disapamok-srilanka-cities/health.svg)

```
[![Health](https://phpackages.com/badges/disapamok-srilanka-cities/health.svg)](https://phpackages.com/packages/disapamok-srilanka-cities)
```

###  Alternatives

[devfactory/minify

A package for minifying styles and javascript for laravel 5

87363.5k14](/packages/devfactory-minify)[bluemmb/faker-picsum-photos-provider

picsum.photos provider for Faker

31225.7k1](/packages/bluemmb-faker-picsum-photos-provider)[vufind-org/vufindharvest

VuFind Harvest Tools

23285.4k2](/packages/vufind-org-vufindharvest)[backpack/activity-log

Activity Log for Backpack

3487.5k1](/packages/backpack-activity-log)[sulu/automation-bundle

The Sulu Bundle which provides automation functionality

18289.1k8](/packages/sulu-automation-bundle)[husam-tariq/filament-timepicker

Filament 3.x Time Picker

3361.2k2](/packages/husam-tariq-filament-timepicker)

PHPackages © 2026

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