PHPackages                             aharen/maldives-geo - 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. aharen/maldives-geo

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

aharen/maldives-geo
===================

Atolls &amp; Islands of Maldives for PHP

v2.0.0(1y ago)45373[1 issues](https://github.com/aharen/maldives-geo/issues)MITPHPPHP ^8.1|^8.2|^8.3|^8.4

Since Aug 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/aharen/maldives-geo)[ Packagist](https://packagist.org/packages/aharen/maldives-geo)[ RSS](/packages/aharen-maldives-geo/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (12)Used By (0)

Atolls &amp; Islands of Maldives for PHP
========================================

[](#atolls--islands-of-maldives-for-php)

All data collected from [www.atollsofmaldives.gov.mv](https://www.atollsofmaldives.gov.mv/atolls).

If you're looking for a simple JS or JSON version [naxeem/maldives-atoll-islands](https://github.com/naxeem/maldives-atoll-islands)

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

[](#installation)

```
composer require aharen/maldives-geo

```

Usage
-----

[](#usage)

This package has 2 main classes, one for Atolls and the other for Islands

### Atolls

[](#atolls)

Each atoll contains the following information:

```
{
    "code": "HDH",
    "name": "Haa Dhaalu Atoll",
    "alt_name": "Thiladhunmathi Dhekunuburi"
}

```

Fetch all atolls

```
use aharen\MaldivesGeo\Atoll;

(new Atoll)->all();

```

Get an atoll using code

```
use aharen\MaldivesGeo\Atoll;

(new Atoll)->get('gn');

```

Get an atoll with the islands in atoll

```
use aharen\MaldivesGeo\Atoll;

(new Atoll)->getWithIslands('gn');

```

### Islands

[](#islands)

Each island contains the following information:

```
{
   "atoll": "HDH",
    "type": "Islands",
    "name": "Vaikaradhoo",
    "alt_name": null,
    "latitude": "6.549444444",
    "longitude": "72.95305556",
    "flags": [
        "I"
    ]
}

```

Get an island by it's name. Optional atoll parameter can be provided as the second argument.

Since multiple islands with the same name exist, if the atoll is not provided it will return the first result

```
use aharen\MaldivesGeo\Island;

(new Island)->get('vaikaradhoo');

```

Get an island by it's name and atoll

```
use aharen\MaldivesGeo\Island;

(new Island)->get('maafushi', 'f);

```

Get an island by it's name with atoll

```
use aharen\MaldivesGeo\Island;

(new Island)->getWithAtoll('vaikaradhoo');

```

Get all islands in an atoll

```
use aharen\MaldivesGeo\Island;

(new Island)->getInAtoll('gn');

```

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 91.4% 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 ~165 days

Recently: every ~334 days

Total

11

Last Release

448d ago

Major Versions

v1.2.0 → v2.0.02025-02-18

PHP version history (4 changes)v1.0.0PHP ^7.4.0

v1.1.0PHP ^8.0

v1.2.0PHP ^8.0|^8.1

v2.0.0PHP ^8.1|^8.2|^8.3|^8.4

### Community

Maintainers

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

---

Top Contributors

[![aharen](https://avatars.githubusercontent.com/u/46440?v=4)](https://github.com/aharen "aharen (32 commits)")[![naxeem](https://avatars.githubusercontent.com/u/1323610?v=4)](https://github.com/naxeem "naxeem (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/aharen-maldives-geo/health.svg)

```
[![Health](https://phpackages.com/badges/aharen-maldives-geo/health.svg)](https://phpackages.com/packages/aharen-maldives-geo)
```

###  Alternatives

[illuminate/support

The Illuminate Support package.

583107.1M34.5k](/packages/illuminate-support)[pragmarx/countries

PHP Countries and Currencies

1.9k3.3M18](/packages/pragmarx-countries)[illuminate/events

The Illuminate Events package.

13454.3M1.8k](/packages/illuminate-events)[illuminate/config

The Illuminate Config package.

10842.7M2.2k](/packages/illuminate-config)[illuminate/session

The Illuminate Session package.

9937.4M753](/packages/illuminate-session)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)

PHPackages © 2026

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