PHPackages                             ahmedfaragmostafa/geo-ip - 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. ahmedfaragmostafa/geo-ip

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

ahmedfaragmostafa/geo-ip
========================

get geo information for IP Address

321PHP

Since Jul 21Pushed 7y ago1 watchersCompare

[ Source](https://github.com/ahmedfaragmostafa/geoIp)[ Packagist](https://packagist.org/packages/ahmedfaragmostafa/geo-ip)[ RSS](/packages/ahmedfaragmostafa-geo-ip/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

[![Build Status](https://camo.githubusercontent.com/0d43cb31edf072146535cac163cd52b0daedab8aeaa9a7b3d5d5302167c65906/68747470733a2f2f7472617669732d63692e6f72672f61686d656466617261676d6f73746166612f67656f49702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ahmedfaragmostafa/geoIp) [![Scrutinizer Quality Score](https://camo.githubusercontent.com/bdaf1f33dc269adab43150e4d6f8e2e5f6d1397b1942dbe3576a6bf895cedd87/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f61686d656466617261676d6f73746166612f67656f49702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ahmedfaragmostafa/geoIp/) [![Open Source Love](https://camo.githubusercontent.com/a8a6219cf0313b681948382bcbcc27a34ae00572d463437bd92ebb1df58647c9/68747470733a2f2f6261646765732e66726170736f66742e636f6d2f6f732f76312f6f70656e2d736f757263652e7376673f763d313033)](https://github.com/ellerbrock/open-source-badges/)

GEO IP
------

[](#geo-ip)

The Easiest way to Get all information about an IP Address using

Install
-------

[](#install)

```
composer require "ahmedfaragmostafa/geo-ip":"dev-master"

```

Get Stared
----------

[](#get-stared)

```
use \Src\GeoIp;
 $ipInfo = new GeoIp('IP_ADDRESS');
```

Example
-------

[](#example)

```
$ipInfo = new \Src\GeoIp('85.203.13.62');

$ipInfo->getCountry(); //France
$ipInfo->getCountryCode(); //FR

$ipInfo->getLon(); //2.3292
$ipInfo->getLat(); //48.8628

$ipInfo->getCity(); //Paris
$ipInfo->getRegionName(); //Île-de-France
$ipInfo->getRegion(); //IDF

$ipInfo->getZip(); // 75001
$ipInfo->getTimezone(); // Europe/Paris

$ipInfo->getOrg(); //Falco Networks
```

### Tests

[](#tests)

```
 vendor/bin/phpunit tests

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity40

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://avatars.githubusercontent.com/u/2309904?v=4)[Ahmad Farag](/maintainers/ahmedfaragmostafa)[@ahmedfaragmostafa](https://github.com/ahmedfaragmostafa)

---

Top Contributors

[![ahmedfaragmostafa](https://avatars.githubusercontent.com/u/2309904?v=4)](https://github.com/ahmedfaragmostafa "ahmedfaragmostafa (10 commits)")

---

Tags

php7

### Embed Badge

![Health badge](/badges/ahmedfaragmostafa-geo-ip/health.svg)

```
[![Health](https://phpackages.com/badges/ahmedfaragmostafa-geo-ip/health.svg)](https://phpackages.com/packages/ahmedfaragmostafa-geo-ip)
```

###  Alternatives

[derhansen/sf_event_mgt

Event management and registration - Configurable event management and registration extension based on ExtBase and Fluid

65329.4k9](/packages/derhansen-sf-event-mgt)[pocketmine/snooze

Thread notification management library for code using the pthreads extension

20584.6k12](/packages/pocketmine-snooze)[risan/sentiment-analysis

Sentiment analysis library for PHP.

223.6k](/packages/risan-sentiment-analysis)

PHPackages © 2026

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