skywalker-labs/location
Composer 安装命令:
composer require skywalker-labs/location
包简介
OmniLocate: Advanced user location detection for Laravel with persistence, caching, and distance utilities.
README 文档
README
📍 OmniLocate
Elite Location Intelligence, Threat Monitoring & Hybrid Verification for Laravel
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 • Features • Security • Dashboard
💎 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
Perfect for getting your project up and running in minutes.
1. Installation
composer require skywalker-labs/location
2. Setup
php artisan vendor:publish --provider="Skywalker\Location\LocationServiceProvider"
php artisan migrate
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
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)
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
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
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 & Block Analytics
Access it at: /omni-locate/dashboard
🛡️ 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
Switch between 8+ enterprise drivers with intelligent failover:
- MaxMind (Local & Web)
- IpInfo, IpData, IpApi
- GeoPlugin
- HttpHeader (Proximity Headers)
🤝 Community & Support
- Contributing: Read our Contributing Guide.
- Security: Report issues via Security Policy.
Created & Maintained by Skywalker-Labs Team. Distributed under the MIT License.
skywalker-labs/location 适用场景与选型建议
skywalker-labs/location 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 79 次下载、GitHub Stars 达 7, 最近一次更新时间为 2026 年 02 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「persistence」 「php」 「geoip」 「laravel」 「location」 「geo-location」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 skywalker-labs/location 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 skywalker-labs/location 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 skywalker-labs/location 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A GeoIP decorator/processor for monolog
This bundle provides tools to build persistence-agnostic storage layer.
Propel2 is an open-source Object-Relational Mapping (ORM) for PHP 5.5 and up.
Kinikit - PHP Application development framework MVC component
PHP GeoIP client
A library providing abstract implementations of various persistence layers based on JSON API relational resource concepts.
统计信息
- 总下载量: 79
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 39
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-15