PHPackages                             track\_ip/demo - 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. track\_ip/demo

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

track\_ip/demo
==============

Demo package for tracking and geocoding ip addresses.

014PHP

Since Aug 31Pushed 7y ago1 watchersCompare

[ Source](https://github.com/srarejai/track_ip)[ Packagist](https://packagist.org/packages/track_ip/demo)[ RSS](/packages/track-ip-demo/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Usage Instruction for package GeoCoding Ip addresses.

1. For using this package you have to register in the IpInfoDb site and get your free API Key for geocoding IP addresses..

    URL for registering:
2. Include class on top using following line.

use track\_ip\\Demo\\Demo;

3. In composer.json include following line

"require": { "track\_ip/Demo": "dev-master" }

4. Execute the command

composer update

5. Add following line to providers array in app.php

track\_ip\\Demo\\DemoServiceProvider::class

6. Add following line to aliases array

'track\_ip' =&gt; track\_ip\\Demo\\Demo::class

7. Use following code in your controller

$ip = $\_SERVER\['REMOTE\_ADDR'\]; $geo = new Demo(); $format = "json"; // can be raw, xml or json $geovalues = $geo-&gt;getGeoLocation($ip, "YOUR IPINFODB API KEY", $format);

8. Results

statusCode: 100 statusMessage: Error: Invalid Number Of Arguments Passed

statusCode: 101 statusMessage: Invalid Result Format Requested

statusCode: 102 statusMessage: Invalid Ip Format

statusCode: OK statusMessage: IP Geocoded Successfully

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity40

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://www.gravatar.com/avatar/86afd482e4c1ca9ba37c3df3eec9b2c16284edd5661604e2bc6841870b75ed2b?d=identicon)[jaya1966](/maintainers/jaya1966)

### Embed Badge

![Health badge](/badges/track-ip-demo/health.svg)

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

PHPackages © 2026

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