PHPackages                             2amigos/egeoip - 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. 2amigos/egeoip

AbandonedArchivedYii-extension[Utility &amp; Helpers](/categories/utility)

2amigos/egeoip
==============

This extension allows you to easily integrate the geoPlugin webservice into your Yii applications.

96403PHP

Since Feb 27Pushed 13y ago3 watchersCompare

[ Source](https://github.com/2amigos/egeoip)[ Packagist](https://packagist.org/packages/2amigos/egeoip)[ RSS](/packages/2amigos-egeoip/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

egeoip
======

[](#egeoip)

***EGeoIp Extension uses geoPlugin free webservice to locate IP geo information***

This extension allows you to easily integrate the geoPlugin webservice into your Yii applications.

\##What is geoPlugin? geoPlugin offers you, the webmaster, the ability to easily geo-localize your visitor down to the city they are in, know what currency they use and the up-to-date currency exchange rate of their currency versus yours.

\##Requirements

Developed with Yii 1.1.6

\##Usage

Unpack the contents of the extension to your protected/extensions directory. Once you do that, the following is an example on how to use it:

```
Yii::import('ext.EGeoIP');

$geoIp = new EGeoIP();

$geoIp->locate('88.27.28.44'); // use your IP

echo 'Information regarding IP: '.$geoIp->ip.'';
echo 'City: '.$geoIp->city.'';
echo 'Region: '.$geoIp->region.'';
echo 'Area Code: '.$geoIp->areaCode.'';
echo 'DMA: '.$geoIp->dma.'';
echo 'Country Code: '.$geoIp->countryCode.'';
echo 'Country Name: '.$geoIp->countryName.'';
echo 'Continent Code: '.$geoIp->continentCode.'';
echo 'Latitude: '.$geoIp->latitude.'';
echo 'Longitude: '.$geoIp->longitude.'';
echo 'Currency Symbol: '.$geoIp->currencySymbol.'';
echo 'Currency Code: '.$geoIp->currencyCode.'';
echo 'Currency Converter: '.$geoIp->currencyConverter.'';

echo 'Converting $10.00 to '.$geoIp->currencyCode.': '.$geoIp->currencyConvert(10).'';

```

\##Note

Please make use of the forum post to report errors, requests, and suggestions. Let comments on this extension for coding hints.

\##Resources

- [Project page](http://www.ramirezcobos.com/)
- [geoPlugin Webservice](http://www.geoplugin.com/)
- [Forum Post](http://www.yiiframework.com/forum/index.php?/topic/16495-extension-egeoip-extension/)

> [![2amigOS!](https://camo.githubusercontent.com/9fd8f1de41dc23003bb2a54034cb6658dde5be97092e195a62d629d0d7fa7f6c/687474703a2f2f7777772e67726176617461722e636f6d2f6176617461722f35353336333339346437323934356666376564333132353536656330343165302e706e67)](http://www.2amigos.us)
> *web development has never been so fun*
> [www.2amigos.us](http://www.2amigos.us) - under construction -

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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://avatars.githubusercontent.com/u/566016?v=4)[Antonio Ramirez](/maintainers/tonydspaniard)[@tonydspaniard](https://github.com/tonydspaniard)

### Embed Badge

![Health badge](/badges/2amigos-egeoip/health.svg)

```
[![Health](https://phpackages.com/badges/2amigos-egeoip/health.svg)](https://phpackages.com/packages/2amigos-egeoip)
```

###  Alternatives

[distantnative/retour-for-kirby

Manage redirects and track 404s right from the Kirby CMS Panel

14698.5k1](/packages/distantnative-retour-for-kirby)[hhxsv5/php-coroutine

A lightweight library to implement coroutine by yield &amp; Generator.

282.1k](/packages/hhxsv5-php-coroutine)

PHPackages © 2026

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