PHPackages                             danilo9/get\_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. danilo9/get\_ip

ActiveLibrary

danilo9/get\_ip
===============

Getting information about ip

v1.0(3y ago)02Apache-2.0PHP

Since May 30Pushed 3y ago1 watchersCompare

[ Source](https://github.com/kalininDanil17Y/get_ip)[ Packagist](https://packagist.org/packages/danilo9/get_ip)[ RSS](/packages/danilo9-get-ip/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

get\_ip
=======

[](#get_ip)

Getting information about IP

Fields that can be obtained:

- continent
- continentCode
- country
- countryCode
- currency
- regionName
- city
- timezone
- privacy
- - proxy
- - mobile
- - hosting
- location
- - lat
- - lon
- zip
- region
- isp
- as
- asname

Installation
------------

[](#installation)

```
composer require danilo9/get_ip
```

Documentation
-------------

[](#documentation)

Declare a class:

```
use Danilo9\GetIp\GetIp;
$getIp = new GetIp();
```

Options:

```
$getIp = new GetIp(['lang' => 'ru']);
```

Get information about ip:

```
$info = $getIp->process('176.59.134.100');
```

The default is `$_SERVER['REMOTE_ADDR']`

Get information

```
// Returning string
$info->getStatus();
$info->getIp();
$info->getContinent();
$info->getContinentCode();
$info->getCountry();
$info->getCountryCode();
$info->getCurrency();
$info->getRegionName();
$info->getCity();
$info->getTimezone();
$info->getZip();
$info->getRegion();
$info->toJson();
$info->getLocation()->toJson();
$info->getPrivacy()->toJson();
// int
$info->getLocation()->getLat();
$info->getLocation()->getLon();
//bool
$info->getPrivacy()->getMobile();
$info->getPrivacy()->getProxy();
$info->getPrivacy()->getHosting();
// array
$info->toArray();
$info->getLocation()->toArray();
$info->getPrivacy()->toArray();
// jSON
$info->toJson();
$info->getLocation()->toJson();
$info->getPrivacy()->toJson();
```

License
-------

[](#license)

Apache License 2.0

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1447d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/014e35e9490d7cb610602dfc9f6db0b6eb97738a1580fd6f2baa128708adc121?d=identicon)[kalininDanil17Y](/maintainers/kalininDanil17Y)

---

Top Contributors

[![kalininDanil17Y](https://avatars.githubusercontent.com/u/89091098?v=4)](https://github.com/kalininDanil17Y "kalininDanil17Y (16 commits)")

### Embed Badge

![Health badge](/badges/danilo9-get-ip/health.svg)

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

PHPackages © 2026

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