PHPackages                             azizdevfull/uzb-geo-locator - 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. azizdevfull/uzb-geo-locator

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

azizdevfull/uzb-geo-locator
===========================

Detect Uzbekistan region by latitude and longitude using GeoJSON polygons.

v1.0.5(8mo ago)06MITPHPPHP &gt;=8.1

Since Oct 14Pushed 8mo agoCompare

[ Source](https://github.com/azizdevfull/uzb-geo-locator)[ Packagist](https://packagist.org/packages/azizdevfull/uzb-geo-locator)[ RSS](/packages/azizdevfull-uzb-geo-locator/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (7)Used By (0)

🇺🇿 Uzb Geo Locator
==================

[](#-uzb-geo-locator)

**Uzb Geo Locator** --- bu O'zbekiston ichidagi geografik koordinatalar (latitude/longitude) asosida qaysi **viloyat** yoki **hudud**da joylashganini aniqlovchi PHP/Laravel kutubxona.

GeoJSON formatdagi viloyat chegaralari asosida ishlaydi.

---

🚀 O'rnatish
-----------

[](#-ornatish)

### 1. Composer orqali o'rnatish

[](#1-composer-orqali-ornatish)

```
composer require azizdevfull/uzb-geo-locator
```

---

### 2. GeoJSON faylni publish qilish (Laravel uchun)

[](#2-geojson-faylni-publish-qilish-laravel-uchun)

Kutubxona bilan birga kelgan viloyat koordinatalarini `storage/app/geo`papkaga publish qilish uchun:

```
php artisan vendor:publish --tag=uzb-geo-data
```

Bu bilan quyidagi fayl yaratiladi:

```
storage/app/geo/uzbekistan_regions.geojson

```

---

⚙️ Foydalanish
--------------

[](#️-foydalanish)

### Laravel ichida

[](#laravel-ichida)

```
use Azizdev\UzbGeoLocator\GeoService;

$geo = app(GeoService::class);

// Toshkent koordinatalari (lat, lng)
$result = $geo->detectRegion(41.3111, 69.2797);

dd($result);
```

**Natija (example):**

```
{
  "ADM1_EN": "Tashkent city",
  "ADM1_RU": "г. Ташкент",
  "ADM1_UZ": "Toshkent sh."
}
```

---

### Pure PHP loyihalarda (Laravel'siz)

[](#pure-php-loyihalarda-laravelsiz)

```
require 'vendor/autoload.php';

use Azizdev\UzbGeoLocator\GeoService;

$geo = new GeoService();
$result = $geo->detectRegion(41.3, 69.2);

print_r($result);
```

---

🧠 Texnik tafsilotlar
--------------------

[](#-texnik-tafsilotlar)

- Format: **GeoJSON polygons**
- Aniqlash algoritmi: **Ray Casting / Point-in-Polygon**
- PHP talabi: `>=8.1`
- Laravel versiyasi: `>=10.x`
- Fayl joylashuvi: `storage/app/geo/uzbekistan_regions.geojson`

---

📦 Paket struktura
-----------------

[](#-paket-struktura)

```
src/
 ├── GeoService.php
 ├── GeoServiceProvider.php
 ├── helpers.php
storage/
 └── app/geo/uzbekistan_regions.geojson

```

---

🧑‍💻 Muallif
-----------

[](#‍-muallif)

**Azizbek (@azizdevfull)**
🔗 [GitHub](https://github.com/azizdevfull)
📺 Laravel, Redis, Octane, RabbitMQ, FastAPI bo'yicha kontentlar muallifi

---

🪪 Litsenziya
------------

[](#-litsenziya)

Bu loyiha **MIT License** asosida tarqatiladi.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance59

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

6

Last Release

263d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/102867709?v=4)[Azizbek Isroilov](/maintainers/azizdevfull)[@azizdevfull](https://github.com/azizdevfull)

---

Top Contributors

[![azizdevfull](https://avatars.githubusercontent.com/u/102867709?v=4)](https://github.com/azizdevfull "azizdevfull (11 commits)")

### Embed Badge

![Health badge](/badges/azizdevfull-uzb-geo-locator/health.svg)

```
[![Health](https://phpackages.com/badges/azizdevfull-uzb-geo-locator/health.svg)](https://phpackages.com/packages/azizdevfull-uzb-geo-locator)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M282](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.6M375](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

244.6M136](/packages/illuminate-cookie)

PHPackages © 2026

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