PHPackages                             tigrov/wikipedia-divisions - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. tigrov/wikipedia-divisions

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

tigrov/wikipedia-divisions
==========================

Parser for country divisions from Wikipedia.

54PHP

Since Mar 31Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Tigrov/wikipedia-divisions)[ Packagist](https://packagist.org/packages/tigrov/wikipedia-divisions)[ RSS](/packages/tigrov-wikipedia-divisions/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Wikipedia divisions
===================

[](#wikipedia-divisions)

Parser to get list of country divisions and subdivisions with ISO-3166-2 codes in CSV format from [https://en.wikipedia.org/wiki/ISO\_3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)

To execute run the command in shell:

```
php parse.php

```

The results are saved in the files:

```
result/divisions.csv
result/subdivisions.csv

```

The first column is a country ISO-3166-1 code

**Example of parsed urls:**

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

Division names
--------------

[](#division-names)

Parser to get translated names of divisions from Wikipedia:

To execute run the command in shell

```
php parse-names.php

```

The result is saved in the file:

```
result/names.csv

```

Additional
----------

[](#additional)

Parser for country divisions from Geoname:

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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://avatars.githubusercontent.com/u/2112911?v=4)[Tigros](/maintainers/Tigros)[@tigros](https://github.com/tigros)

---

Tags

divisionprovinceregionstatesubdivisionwikipedia

### Embed Badge

![Health badge](/badges/tigrov-wikipedia-divisions/health.svg)

```
[![Health](https://phpackages.com/badges/tigrov-wikipedia-divisions/health.svg)](https://phpackages.com/packages/tigrov-wikipedia-divisions)
```

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19037.7M41](/packages/mck89-peast)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9642.0k](/packages/sauladam-shipment-tracker)[jstewmc/rtf

Read and write Rich Text Format (RTF) documents with PHP

46143.1k6](/packages/jstewmc-rtf)[moonshine/layouts-field

Field for repeating groups of fields for MoonShine

107.9k](/packages/moonshine-layouts-field)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

112.9k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

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