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(6mo ago)06MITPHPPHP &gt;=8.1

Since Oct 14Pushed 6mo 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 1mo ago

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

33

—

LowBetter than 75% of packages

Maintenance65

Regular maintenance activity

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

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

209d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3394b6abf97b48e1ad754c6d5664fd8d673175c4d266209f4142d1325f5d54a0?d=identicon)[azizdevfull](/maintainers/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

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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