PHPackages                             shahmy/sri\_lanka\_administrative\_boundaries - 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. shahmy/sri\_lanka\_administrative\_boundaries

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

shahmy/sri\_lanka\_administrative\_boundaries
=============================================

A Laravel package for Sri Lankan administrative boundaries.

v1.0.8(9mo ago)0121MITPHP

Since Sep 14Pushed 9mo agoCompare

[ Source](https://github.com/shahmy/sri_lanka_administrative_boundaries)[ Packagist](https://packagist.org/packages/shahmy/sri_lanka_administrative_boundaries)[ RSS](/packages/shahmy-sri-lanka-administrative-boundaries/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (10)Used By (0)

### shahmy/sri\_lanka\_administrative\_boundaries

[](#shahmysri_lanka_administrative_boundaries)

This package provides a comprehensive migration and seeder solution for populating a Laravel application with the administrative boundaries of Sri Lanka, including Provinces, Districts, Divisional Secretariats, and Grama Niladhari Divisions. The data is based on the official sources and is pre-packaged as JSON files for easy migration and seeding.

---

### Installation Guide

[](#installation-guide)

You can install the package via Composer.

```
composer require shahmy/sri_lanka_administrative_boundaries
```

After the package is installed, you need to publish the migration files to your `database/migrations` directory.

```
php artisan vendor:publish --tag=sri-lanka-administrative-boundaries-migrations
```

Next, you can run the migrations and seed the database with the provided data. You have two options for seeding:

**Option 1: Run All Migrations and Seeders**

Add the package's seeder to your main `database/seeders/DatabaseSeeder.php` file.

```
// database/seeder/DatabaseSeeder.php

use Illuminate\Database\Seeder;
use Shahmy\SriLankaAdministrativeBoundaries\database\seeders\SriLankaAdministrativeBoundariesSeeder;

class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     */
    public function run(): void
    {
        $this->call([
            // Other seeders...
            SriLankaAdministrativeBoundariesSeeder::class,
        ]);
    }
}
```

Then, run the command:

```
php artisan migrate --seed
```

**Option 2: Run Only the Package's Seeder**

If you have already run your migrations and only need to seed the data from this package, you can run the following command directly:

```
php artisan db:seed --class=\Shahmy\SriLankaAdministrativeBoundaries\database\seeders\SriLankaAdministrativeBoundariesSeeder
```

---

### Data Source

[](#data-source)

The data used in this package is sourced from the **Humanitarian Data Exchange (HDX)**. Specifically, the data is from the following resource:

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance56

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 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

9

Last Release

294d ago

### Community

Maintainers

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

---

Top Contributors

[![shahmy](https://avatars.githubusercontent.com/u/3964390?v=4)](https://github.com/shahmy "shahmy (6 commits)")

### Embed Badge

![Health badge](/badges/shahmy-sri-lanka-administrative-boundaries/health.svg)

```
[![Health](https://phpackages.com/badges/shahmy-sri-lanka-administrative-boundaries/health.svg)](https://phpackages.com/packages/shahmy-sri-lanka-administrative-boundaries)
```

PHPackages © 2026

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