Download the PHP package khudayberdiyev/uzbekistan-regions without Composer
On this page you can find all versions of the php package khudayberdiyev/uzbekistan-regions. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download khudayberdiyev/uzbekistan-regions
More information about khudayberdiyev/uzbekistan-regions
Files in khudayberdiyev/uzbekistan-regions
Package uzbekistan-regions
Short Description Uzbekistan regions, districts and quarters (SOATO) for Laravel: models, migrations, seeder and a ready-to-use multilingual REST API.
License MIT
Informations about the package uzbekistan-regions
Uzbekistan Regions
English · O'zbekcha
Regions, districts and quarters (mahalla) of Uzbekistan for Laravel: Eloquent models, migrations, the full SOATO dataset and a ready-to-use REST API — in Uzbek Latin, Uzbek Cyrillic and Russian.
The dataset ships with the package: 14 regions, 209 districts and cities, 2 641 quarters.
Installation
Create the tables and load the data:
To change any default, publish the config file:
Working with the models
Every region and district is classified, so a picker can show only what it needs:
The type comes from the SOATO code itself — the fifth digit is 4 for a city and 2 for a
district — so it stays correct as the dataset grows.
All three models expose two query scopes — the API is built on the very same ones:
Referencing them from your own models:
API
The package registers these read-only endpoints automatically:
| Method | URI | Returns |
|---|---|---|
| GET | /api/v1/regions |
list of regions |
| GET | /api/v1/regions/{id} |
region + districts + quarters |
| GET | /api/v1/districts |
districts, filterable by ?region_id= |
| GET | /api/v1/districts/{id} |
district + region + quarters |
| GET | /api/v1/quarters |
quarters, filterable by ?district_id= / ?region_id= |
| GET | /api/v1/quarters/{id} |
quarter + district + region |
Query parameters: type (region / city / republic for regions, district / city for
districts), search, sort (id, name, soato_id), order (asc / desc) and
per_page — when present, the response is paginated.
The language is selected with the Accept-Language header: uz (default), oz, ru.
Responses use the standard Laravel resource format:
With per_page the usual links and meta blocks are added.
Data
The names and SOATO codes come from the administrative-territorial classifier of Uzbekistan.
This particular compilation was built from
MIMAXUZ/uzbekistan-regions-data, taken in
April 2025 and corrected since — see database/data/SOURCE.md for
what was changed and for the open question about that repository's GPL-3.0 license.
Configuration
config/uzbekistan-regions.php:
Tests
CI runs the suite on PHP 8.2, 8.3 and 8.4 against Laravel 12, and once more against
PostgreSQL — the search scope uses ILIKE there and cased LIKE variants everywhere else.
Laravel 11 is still allowed by the version constraint but is no longer covered by CI: every
11.x release now carries unpatched security advisories, and Composer refuses to install it.
License
The code is MIT. For the data, see database/data/SOURCE.md.
All versions of uzbekistan-regions with dependencies
illuminate/support Version ^11.0 || ^12.0
illuminate/database Version ^11.0 || ^12.0
illuminate/http Version ^11.0 || ^12.0
illuminate/routing Version ^11.0 || ^12.0
illuminate/console Version ^11.0 || ^12.0