PHPackages                             blazeffect/laravel-sypexgeo - 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. blazeffect/laravel-sypexgeo

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

blazeffect/laravel-sypexgeo
===========================

Supports GeoIP services (sypexgeo.net).

1.0.0(8mo ago)029PHPPHP &gt;=8.1

Since Sep 19Pushed 8mo agoCompare

[ Source](https://github.com/BlazEffect/laravel-SypexGeo)[ Packagist](https://packagist.org/packages/blazeffect/laravel-sypexgeo)[ RSS](/packages/blazeffect-laravel-sypexgeo/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

SypexGeo for Laravel 12
=======================

[](#sypexgeo-for-laravel-12)

---

The data comes from a database

Installation
------------

[](#installation)

- [SypexGeo for Laravel 5 on Packagist](https://packagist.org/packages/scriptixru/sypexgeo)
- [SypexGeo for Laravel 5 on GitHub](https://github.com/scriptixru/sypexgeo)
- [SypexGeo for Laravel 7 on GitHub](https://github.com/default-089/sxgeo)
- [SypexGeo for Laravel 7 on Packagist](https://packagist.org/packages/default-089/sxgeo)
- [SypexGeo for Laravel 12 on GitHub](https://github.com/BlazEffect/laravel-SypexGeo)

To get the latest version of SypexGeo simply require it in your `composer.json` file.

```
"blazeffect/laravel-sypexgeo": "1.0.0"

```

You'll then need to run `composer install` to download it and have the autoloader updated.

The package will automatically register a service provider.

### Publish the configurations

[](#publish-the-configurations)

Run this on the command line from the root of your project:

```
$ php artisan vendor:publish --tag=sxgeo-config

```

A configuration file will be publish to `config/sxgeo.php`

Usage
-----

[](#usage)

Getting the location data for a given IP:

```
$sxgeo = app('sxgeo');
$location = $sxgeo->get('232.223.11.11');
```

### Example Data

[](#example-data)

If data is received from the database - config/sxgeo.php

```
        [
            'city' => [
                'id' => 524901,
                'lat' => 55.75222,
                'lon' => 37.61556,
                'name_ru' => 'Москва',
                'name_en' => 'Moscow',
                'okato' => '45',
            ],
            'region' => [
                'id' => 524894,
                'lat' => 55.76,
                'lon' => 37.61,
                'name_ru' => 'Москва',
                'name_en' => 'Moskva',
                'iso' => 'RU-MOW',
                'timezone' => 'Europe/Moscow',
                'okato' => '45',
            ],
            'country' => [
                'id' => 185,
                'iso' => 'RU',
                'continent' => 'EU',
                'lat' => 60,
                'lon' => 100,
                'name_ru' => 'Россия',
                'name_en' => 'Russia',
                'timezone' => 'Europe/Moscow',
            ],
        ];
```

#### Default Location

[](#default-location)

In the case that a location is not found the fallback location will be returned with the `default` parameter set to `true`. To set your own default change it in the configurations `config/geoip.php`

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance62

Regular maintenance activity

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 61.8% 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

Unknown

Total

1

Last Release

241d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9e6d2e302e418b6c1cbef20a391e10e801678e058ba7e6f706378b8115b9cfed?d=identicon)[BlazEffect](/maintainers/BlazEffect)

---

Top Contributors

[![dmitrakovich](https://avatars.githubusercontent.com/u/28905316?v=4)](https://github.com/dmitrakovich "dmitrakovich (21 commits)")[![scriptixru](https://avatars.githubusercontent.com/u/11806645?v=4)](https://github.com/scriptixru "scriptixru (10 commits)")[![BlazEffect](https://avatars.githubusercontent.com/u/45911664?v=4)](https://github.com/BlazEffect "BlazEffect (3 commits)")

---

Tags

laravelgeoipgeolocationlocation

### Embed Badge

![Health badge](/badges/blazeffect-laravel-sypexgeo/health.svg)

```
[![Health](https://phpackages.com/badges/blazeffect-laravel-sypexgeo/health.svg)](https://phpackages.com/packages/blazeffect-laravel-sypexgeo)
```

###  Alternatives

[torann/geoip

Support for multiple Geographical Location services.

2.2k14.2M76](/packages/torann-geoip)[stevebauman/location

Retrieve a user's location by their IP Address

1.3k7.6M65](/packages/stevebauman-location)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[adrianorosa/laravel-geolocation

Laravel Geo Location package to get details for a given IP Address

6593.3k1](/packages/adrianorosa-laravel-geolocation)[midnite81/geolocation

A laravel package which wraps the IP Info DB and IP2Location Services

3624.1k](/packages/midnite81-geolocation)[tabgeo/country

geoip (only countries) php library (http://tabgeo.com)

1158.8k](/packages/tabgeo-country)

PHPackages © 2026

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