PHPackages                             l91/iso-3166-2 - 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. l91/iso-3166-2

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

l91/iso-3166-2
==============

PHP Lib for ISO 3166-2

v1.0.2(4y ago)15171.6k↓44.7%91MITPHPPHP &gt;=5.3

Since Oct 11Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/alexander-schranz/iso-3166-2)[ Packagist](https://packagist.org/packages/l91/iso-3166-2)[ Docs](https://https://github.com/alexander-schranz/iso-3166-2)[ RSS](/packages/l91-iso-3166-2/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (3)DependenciesVersions (4)Used By (1)

ISO 3166-2
==========

[](#iso-3166-2)

Complete Collection of json files for the country subdivision from ISO 3166-2.

ISO 3166-2 [https://en.wikipedia.org/wiki/ISO\_3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)

Usage
=====

[](#usage)

```
$ukSubdivisions = \L91\ISO_3166_2\Subdivision::getSubdivisions('gb');
```

Folder Structure
================

[](#folder-structure)

- subdivisions (all subdivisions by countrycode)
- countrycode (specific translations)

**Example:**

- subdivisions
    - at.json (all subdivisions from austria in the default/country language)
    - at
        - en.json (english translated subdivisions)

Contribute
==========

[](#contribute)

Feel free to contribute by add translates and co. from the ISO-3166-2.

ProgressSubdivisions[![100%](https://camo.githubusercontent.com/7b62246c11a105c3b55945b985c7d09c4cd25e92003b15cff3ef32ec68656216/687474703a2f2f70726f677265737365642e696f2f6261722f313030)](https://camo.githubusercontent.com/7b62246c11a105c3b55945b985c7d09c4cd25e92003b15cff3ef32ec68656216/687474703a2f2f70726f677265737365642e696f2f6261722f313030)Specific Translates[![1%](https://camo.githubusercontent.com/2e3fcdaa903c43488eb2be5c3a7be98e20721fd5725e3c01a4a3da0fb74c91ab/687474703a2f2f70726f677265737365642e696f2f6261722f31)](https://camo.githubusercontent.com/2e3fcdaa903c43488eb2be5c3a7be98e20721fd5725e3c01a4a3da0fb74c91ab/687474703a2f2f70726f677265737365642e696f2f6261722f31)**Code Snippet to get the ISO from Wiki in Dev Tools**

```
var obj = {};
$('.jquery-tablesorter tbody').eq(0).find('td:first-child').each(function() {
     obj[$.trim($(this).text())] = $.trim($(this).next().text());
});

console.log(JSON.stringify(obj, null, 4));
```

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 98.9% 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 ~1211 days

Total

3

Last Release

1495d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1698337?v=4)[Alexander Schranz](/maintainers/alexander-schranz)[@alexander-schranz](https://github.com/alexander-schranz)

---

Top Contributors

[![alexander-schranz](https://avatars.githubusercontent.com/u/1698337?v=4)](https://github.com/alexander-schranz "alexander-schranz (280 commits)")[![bmccord2](https://avatars.githubusercontent.com/u/38714333?v=4)](https://github.com/bmccord2 "bmccord2 (1 commits)")[![laszlof](https://avatars.githubusercontent.com/u/1486486?v=4)](https://github.com/laszlof "laszlof (1 commits)")[![xerc](https://avatars.githubusercontent.com/u/1372590?v=4)](https://github.com/xerc "xerc (1 commits)")

### Embed Badge

![Health badge](/badges/l91-iso-3166-2/health.svg)

```
[![Health](https://phpackages.com/badges/l91-iso-3166-2/health.svg)](https://phpackages.com/packages/l91-iso-3166-2)
```

###  Alternatives

[laravolt/indonesia

Package Laravel yang berisi data Provinsi, Kabupaten/Kota, Kecamatan, dan Keluarahan/Desa di seluruh Indonesia.

668212.3k1](/packages/laravolt-indonesia)[advoor/nova-editor-js

A Laravel Nova field bringing EditorJs magic to Nova.

92219.3k3](/packages/advoor-nova-editor-js)[ohdearapp/ohdear-pulse

Integrate Oh Dear with Laravel Pulse

26190.0k](/packages/ohdearapp-ohdear-pulse)[verbb/hyper

A user-friendly links field for Craft.

24147.8k12](/packages/verbb-hyper)[modstore/laravel-enum-js

Package to generate javascript versions of your PHP enum files to be used in your js builds etc.

15157.4k](/packages/modstore-laravel-enum-js)

PHPackages © 2026

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