PHPackages                             fuhrmann/larageo-plugin - 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. [API Development](/categories/api)
4. /
5. fuhrmann/larageo-plugin

ActiveLibrary[API Development](/categories/api)

fuhrmann/larageo-plugin
=======================

A Laravel package that uses geoPlugin web service to fetch information from an IP.

111.6k5[1 PRs](https://github.com/Fuhrmann/larageo-plugin/pulls)PHP

Since Nov 9Pushed 5y ago2 watchersCompare

[ Source](https://github.com/Fuhrmann/larageo-plugin)[ Packagist](https://packagist.org/packages/fuhrmann/larageo-plugin)[ RSS](/packages/fuhrmann-larageo-plugin/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (2)Used By (0)

LarageoPlugin (Laravel 4 Package)
=================================

[](#larageoplugin-laravel-4-package)

A Laravel package that uses [geoPlugin](http://www.geoplugin.com/webservices/json) web service to fetch information from an IP. It will store in cache the IP information and it will expire in 1 week.

---

### Installation

[](#installation)

Install this package through Composer. To your composer.json file, add:

```
    "fuhrmann/larageo-plugin": "dev-master"
```

Next, run the Composer update comand

```
$ composer update

```

Add the service provider to app/config/app.php, within the providers array.

```
    'providers' => array(
        // ...
        'Fuhrmann\LarageoPlugin\ServiceProvider',
    ),
```

In the same file `config/app.php` add the alias:

```
    'aliases' => array(
        //...
        'LarageoPlugin'   => 'Fuhrmann\LarageoPlugin\Facade',
    ),
```

### Usage

[](#usage)

You can specify an IP:

```
    $info = LarageoPlugin::getInfo('177.34.13.248'); // get info from a IP
    var_dump($info);
```

Or use it without any param:

```
    $info = LarageoPlugin::getInfo(); // get info from the IP of the user acessing the page
    var_dump($info);
```

This is the output:

```
    object(stdClass)[155]
      public 'geoplugin_request' => string '177.34.13.248' (length=13)
      public 'geoplugin_status' => int 200
      public 'geoplugin_credit' => string 'Some of the returned data includes GeoLite data created by MaxMind, available from http://www.maxmind.com.' (length=145)
      public 'geoplugin_city' => string 'Campo Grande' (length=12)
      public 'geoplugin_region' => string 'Mato Grosso do Sul' (length=18)
      public 'geoplugin_areaCode' => string '0' (length=1)
      public 'geoplugin_dmaCode' => string '0' (length=1)
      public 'geoplugin_countryCode' => string 'BR' (length=2)
      public 'geoplugin_countryName' => string 'Brazil' (length=6)
      public 'geoplugin_continentCode' => string 'SA' (length=2)
      public 'geoplugin_latitude' => string '-20.450001' (length=10)
      public 'geoplugin_longitude' => string '-54.616699' (length=10)
      public 'geoplugin_regionCode' => string '11' (length=2)
      public 'geoplugin_regionName' => string 'Mato Grosso do Sul' (length=18)
      public 'geoplugin_currencyCode' => string 'BRL' (length=3)
      public 'geoplugin_currencySymbol' => string '&#82;&#36;' (length=10)
      public 'geoplugin_currencySymbol_UTF8' => string 'R$' (length=2)
      public 'geoplugin_currencyConverter' => float 2.383
```

Another useful example: You can also just return one field, e.g. city from in one call:

```
    $userCity = LarageoPlugin::getInfo()->geoplugin_city; // get the city from the user IP
    var_dump($userCity);
```

Output:

```
    string 'Campo Grande' (length=12)
```

### More info

[](#more-info)

If you want more info about the geoPlugin web service, [click here](http://www.geoplugin.com/webservices).

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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/4014a815f48ede09ef074e08921fc7ebe82188777e7159ff78ac55d66a2e02b1?d=identicon)[Fuhrmann](/maintainers/Fuhrmann)

---

Top Contributors

[![Fuhrmann](https://avatars.githubusercontent.com/u/1160365?v=4)](https://github.com/Fuhrmann "Fuhrmann (8 commits)")[![MichMich](https://avatars.githubusercontent.com/u/210954?v=4)](https://github.com/MichMich "MichMich (1 commits)")[![tsiedsma](https://avatars.githubusercontent.com/u/2625597?v=4)](https://github.com/tsiedsma "tsiedsma (1 commits)")

### Embed Badge

![Health badge](/badges/fuhrmann-larageo-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/fuhrmann-larageo-plugin/health.svg)](https://phpackages.com/packages/fuhrmann-larageo-plugin)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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