Download the PHP package nurbekjummayev/laravel-region without Composer

On this page you can find all versions of the php package nurbekjummayev/laravel-region. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-region

Laravel Region

Tests Latest Version on Packagist Total Downloads License

Uzbekistan region and district (COATO) classifier for Laravel: migrations, seed data, and Eloquent models.

14 regions · 209 districts · Laravel 13 · PHP 8.3+

Installation

Publish Tag Content Destination
region-config region.php config/
region-migrations migrations database/migrations/
region-data regions.json database/data/region/

Columns

Regions Table

Column Type Description
id bigint Auto-increment
country_code char(2) Default UZ
code string(8) COATO code, unique
tax_code string(8) Tax authority code, unique
type string republic, region, city
name_uz string Uzbek name (Latin)
name_oz string Uzbek name (Cyrillic)
name_ru string Russian name
name_en string English name
is_active boolean Active/inactive
timestamps created_at, updated_at

Districts Table

Column Type Description
id bigint Auto-increment
region_id bigint Foreign key to regions
region_code string(8) Denormalized COATO
code string(16) COATO code, nullable, unique
tax_code string(8) Tax code, nullable
type string district, city
name_uz, name_oz, name_ru, name_en string Translated names
is_active boolean Active/inactive
timestamps created_at, updated_at

Usage

Finding District by Tax Code

District tax code is NOT globally unique — only unique within a region. Always search with region code:

Translation

JSON Response

name is automatically appended (#[Appends]):

Route Model Binding

Models bind to routes by code:

Inter-service Convention

Send code (COATO), not id, to other services.

id is an internal auto-increment, different in each database. code (COATO) is universal and immutable.

Data Notes

Source database/data/regions.json
Regions 14 — code and tax_code globally unique
Districts 209 — code globally unique
Region types republic, region, city
District types district, city
⚠️ District tax_code NOT globally unique (23 duplicates). Composite unique(region_id, tax_code) applied
⚠️ One district Bo'z tumani (region 1703) has no code or tax_code in source. Both columns nullable. Seeder matches by (region_id, name_uz)

districts.region_code is denormalized for fast lookup without joins.

Seeder is idempotent — safe to re-run.

Testing

License

MIT License. See LICENSE for details.


All versions of laravel-region with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
ext-json Version *
illuminate/support Version ^13.0
illuminate/database Version ^13.0
illuminate/console Version ^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package nurbekjummayev/laravel-region contains the following files

Loading the files please wait ...