PHPackages                             sorbing/sypex-geo-laravel - 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. sorbing/sypex-geo-laravel

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

sorbing/sypex-geo-laravel
=========================

The Sypex Geo PHP Class Wrapper for Laravel 4.2

066PHP

Since Apr 3Pushed 11y ago1 watchersCompare

[ Source](https://github.com/Sorbing/sypex-geo-laravel)[ Packagist](https://packagist.org/packages/sorbing/sypex-geo-laravel)[ RSS](/packages/sorbing-sypex-geo-laravel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

The SypexGeo Laravel 4.x Package
--------------------------------

[](#the-sypexgeo-laravel-4x-package)

Determine the City and Country info by IP address.

### Installation

[](#installation)

Require the package via composer:

```
composer require sorbing/sypex-geo-laravel

```

Or specify manually the package in `require` section in `composer.json`:

```
"sorbing/sypex-geo-laravel": "dev-master"

```

.. and run:

```
composer update

```

Register the Service Provider in `providers` array in `app/config/app.php`:

```
'Sorbing\SypexGeoLaravel\SypexGeoLaravelServiceProvider',

```

Use the following config in `composer.json` for install `SxGeoCity.dat` database:

```
"scripts": {
    "post-update-cmd": [
        "IgI\\SypexGeo\\Composer::installDatabases"
    ]
},
"extra": {
    "sypexgeo_remote": "https://sypexgeo.net/files/SxGeoCity_utf8.zip",
    "sypexgeo_local": "app/database/SxGeoCity.dat"
}

```

### Usage

[](#usage)

Usage the `sypexgeo` service from IoC:

```
/** @var \Sorbing\SypexGeoLaravel\SypexGeoService $sypexGeo */
$sypexGeo = \App::make('sypexgeo');

/** @var \Sorbing\SypexGeoLaravel\Wrappers\GeoDataWrapper $geoData */
$geoData = $sypexGeo->get('1.2.3.4');

echo $geoData->city->nameRu;

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/57351102947b33549aef74ee49f9473e6d1718ceea6d6beae2f7a79efa054827?d=identicon)[Sorbing](/maintainers/Sorbing)

---

Top Contributors

[![sorbing](https://avatars.githubusercontent.com/u/1755934?v=4)](https://github.com/sorbing "sorbing (6 commits)")

### Embed Badge

![Health badge](/badges/sorbing-sypex-geo-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/sorbing-sypex-geo-laravel/health.svg)](https://phpackages.com/packages/sorbing-sypex-geo-laravel)
```

PHPackages © 2026

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