Download the PHP package yasseralsamman/saudi-municipal-coding without Composer
On this page you can find all versions of the php package yasseralsamman/saudi-municipal-coding. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yasseralsamman/saudi-municipal-coding
More information about yasseralsamman/saudi-municipal-coding
Files in yasseralsamman/saudi-municipal-coding
Package saudi-municipal-coding
Short Description Open dataset of Saudi Arabia's regions, cities, and districts from the MOMRAH Unified Municipal Coding — bilingual lookups with stable IDs.
License MIT
Informations about the package saudi-municipal-coding
Saudi Unified Municipal Coding — Open Dataset
Open, bilingual dataset of Saudi Arabia's administrative hierarchy — 13 regions, 15,513 cities, and 21,235 districts — from the MOMRAH Unified Municipal Coding. Every record has Arabic and English names and stable integer IDs linked by foreign keys.
This is a lookup (coding) dataset: no coordinates, no boundaries, no composite IDs.
What's in this repo
data/source/— the canonical JSON (regions.json,cities.json,districts.json).data/dist/— generated outputs (JSON, CSV, MySQL, PostgreSQL); regenerated by the build.packages/js/— thesaudi-municipal-codingnpm package.packages/php/— theyasseralsamman/saudi-municipal-codingComposer package.schemas/— JSON Schema for each entity.scripts/— the build, validate, and stats pipeline.
Data formats
| Format | Files |
|---|---|
| JSON | data/dist/{regions,cities,districts}.json |
| CSV | data/dist/{regions,cities,districts}.csv |
| MySQL | data/dist/mysql.sql |
| PostgreSQL | data/dist/postgres.sql |
| SQLite | saudi-municipal-coding.sqlite (attached to each GitHub Release) |
Install
JavaScript / TypeScript
PHP
The data model
region_id, city_id, and district_id are independent integers. Cities reference a
region; districts reference both a city and a region, and a district's region_id always
equals its city's region. District names are not unique by themselves — district_id is
the unique key. See DATA_REFERENCE.md for the full dictionary.
What's not included
- Geographic coordinates or boundary polygons.
- Population, region codes, or capital cities.
- Composite/encoded identifiers — the IDs here are plain integers.
Development
data/dist/ and packages/*/data/ are committed; CI rebuilds and fails if they drift
from a fresh build (pnpm run check:dist-clean). See
CONTRIBUTING.md.
License
- Code (scripts, both packages): MIT.
- Data (
data/source/anddata/dist/): CC0-1.0 — a public-domain dedication, so no attribution is required.
All versions of saudi-municipal-coding with dependencies
ext-json Version *