PHPackages                             skywalker-labs/location - 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. skywalker-labs/location

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

skywalker-labs/location
=======================

OmniLocate: Advanced user location detection for Laravel with persistence, caching, and distance utilities.

v2.0.0(4mo ago)7791MITPHPPHP &gt;=7.0CI failing

Since Feb 4Pushed 3mo agoCompare

[ Source](https://github.com/skywalker-labs/omniLocate)[ Packagist](https://packagist.org/packages/skywalker-labs/location)[ Docs](https://github.com/skywalker-labs/location)[ GitHub Sponsors](https://github.com/sponsors/ermradulsharma)[ RSS](/packages/skywalker-labs-location/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

📍 OmniLocate
============

[](#-omnilocate)

### **Elite Location Intelligence, Threat Monitoring &amp; Hybrid Verification for Laravel**

[](#elite-location-intelligence-threat-monitoring--hybrid-verification-for-laravel)

[![Latest Version](https://camo.githubusercontent.com/603ba92c6fbc654f9185844aba4b7d79aa548ed41d65808d04db41533839661a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d332e302e302d626c756576696f6c65742e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/skywalker-labs/location)[![Laravel Version](https://camo.githubusercontent.com/52dfbdfb78c3d3bb327fc6d402ef3e4aa2b2e7f6d0972d698e04f63410d51ebe/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31302d2d31322d7265642e7376673f7374796c653d666f722d7468652d6261646765)](https://laravel.com)[![PHP Quality](https://camo.githubusercontent.com/509e569b5a1339a83fd38e986af5048dc9f76c72af209dfb9b5a7c5ecc9f5239/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d4c6576656c253230392d737563636573732e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/phpstan/phpstan)[![License](https://camo.githubusercontent.com/31e62e0eff03ce9ddfdf69d8476340d4f541990bfb152cb02a0f342965252997/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666f722d7468652d6261646765)](LICENSE.md)

**OmniLocate** is a high-performance geographical intelligence package built on the **Skywalker Toolkit Foundation**. It combines traditional IP geolocation with modern security features like **Hybrid GPS Verification**, **Bot Guard**, and **Adaptive Risk Scoring**.

[**Get Started**](#-quick-start) • [**Features**](#-pro-intelligence) • [**Security**](#-security--integrity) • [**Dashboard**](#-intelligence-dashboard)

---

💎 Why Choose OmniLocate?
------------------------

[](#-why-choose-omnilocate)

OmniLocate isn't just a wrapper around IP-API. It is an **Elite-Grade** solution designed for applications where accuracy and security are non-negotiable.

- **Extreme Type Safety**: 100% compliant with **PHPStan Level 9**.
- **Hybrid Verification**: Detects sophisticated IP/VPN spoofing by cross-checking against device GPS.
- **Action-Oriented Architecture**: Clean, scalable, and modular design inspired by elite industry standards.
- **Zero-Config Security**: Built-in protection against SSRF, anonymous Tor traffic, and fake crawlers.

---

🚀 Quick Start
-------------

[](#-quick-start)

Perfect for getting your project up and running in minutes.

### 1. Installation

[](#1-installation)

```
composer require skywalker-labs/location
```

### 2. Setup

[](#2-setup)

```
php artisan vendor:publish --provider="Skywalker\Location\LocationServiceProvider"
php artisan migrate
```

### 3. Usage

[](#3-usage)

```
use Skywalker\Location\Facades\Location;

// Auto-detect visitor location
$position = Location::get();

echo $position->countryName; // e.g., "United States"
echo $position->cityName;    // e.g., "New York"
```

---

🧠 Pro Intelligence
------------------

[](#-pro-intelligence)

### **A. In-View Location (Blade)**

[](#a-in-view-location-blade)

Display location data to users without writing a single line of PHP:

```
Welcome from {{ @location('cityName') }}!
```

### **B. Hybrid Geolocation (The "Omni" Factor)**

[](#b-hybrid-geolocation-the-omni-factor)

Detect spoofing by comparing IP data with actual GPS coordinates:

```
if ($position->is_spoofed) {
    // Distance > 500km between IP and GPS detected
    abort(403, 'Location Verification Failed');
}
```

### **C. Adaptive Rate Limiting**

[](#c-adaptive-rate-limiting)

Automatically slow down high-risk IPs while keeping normal users fast ⚡:

```
Route::middleware(['location.rate-limit'])->group(function () {
    Route::post('/login', [LoginController::class, 'store']);
});
```

---

📊 Intelligence Dashboard
------------------------

[](#-intelligence-dashboard)

OmniLocate includes a comprehensive **real-time dashboard** to visualize your traffic, monitor threats, and track geographical trends.

- **Real-time Traffic Mapping**
- **Automated Bot Discovery**
- **Threat &amp; Block Analytics**

Access it at: `/omni-locate/dashboard`

---

🛡️ Security &amp; Integrity
---------------------------

[](#️-security--integrity)

- **Verified Crawler Logic**: Uses Reverse DNS to ensure Googlebot/Bingbot are legitimate before allowing access.
- **SSRF Protection**: Hardened driver layer that blocks internal IP lookups and prevents data leakage.
- **Trusted Proxy Support**: Fully compatible with Cloudflare, Akamai, and AWS load balancers.

---

🔧 Driver Support
----------------

[](#-driver-support)

Switch between 8+ enterprise drivers with intelligent failover:

- **MaxMind** (Local &amp; Web)
- **IpInfo**, **IpData**, **IpApi**
- **GeoPlugin**
- **HttpHeader** (Proximity Headers)

---

🤝 Community &amp; Support
-------------------------

[](#-community--support)

- **Contributing**: Read our [Contributing Guide](CONTRIBUTING.md).
- **Security**: Report issues via [Security Policy](SECURITY.md).

Created &amp; Maintained by **Skywalker-Labs Team**. Distributed under the MIT License.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance77

Regular maintenance activity

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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 ~10 days

Total

2

Last Release

139d ago

Major Versions

v1.0.0 → v2.0.02026-02-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/68241409c48fd5184c979320937b363826a5a9aeeb4260e8d1fa753be39458b9?d=identicon)[ermradulsharma](/maintainers/ermradulsharma)

---

Top Contributors

[![ermradulsharma](https://avatars.githubusercontent.com/u/15956546?v=4)](https://github.com/ermradulsharma "ermradulsharma (25 commits)")

---

Tags

phplaravelgeoippersistencelocationskywalkergeo-locationomnilocate

### Embed Badge

![Health badge](/badges/skywalker-labs-location/health.svg)

```
[![Health](https://phpackages.com/badges/skywalker-labs-location/health.svg)](https://phpackages.com/packages/skywalker-labs-location)
```

###  Alternatives

[stevebauman/location

Retrieve a user's location by their IP Address

1.3k8.5M90](/packages/stevebauman-location)[torann/geoip

Support for multiple Geographical Location services.

2.2k15.3M98](/packages/torann-geoip)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

19267.9k3](/packages/interaction-design-foundation-laravel-geoip)[hibit-dev/geodetect

Automatically detect user's geo data based on their IP address

2322.8k](/packages/hibit-dev-geodetect)[victorybiz/geoip-location

Get the geographical location of website visitors based on their IP addresses. Support Laravel and PHP (Non-Laravel) Project.

23167.8k2](/packages/victorybiz-geoip-location)

PHPackages © 2026

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