PHPackages                             jmf/visitor-ip-resolution - 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. jmf/visitor-ip-resolution

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

jmf/visitor-ip-resolution
=========================

Allows resolving current visitor IP address.

1.2.0(5mo ago)1210MITPHPPHP ^8.3CI passing

Since May 10Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/jmfeurprier/visitor-ip-resolution)[ Packagist](https://packagist.org/packages/jmf/visitor-ip-resolution)[ RSS](/packages/jmf-visitor-ip-resolution/feed)WikiDiscussions 1.2 Synced today

READMEChangelogDependencies (7)Versions (6)Used By (0)

Visitor IP resolution
=====================

[](#visitor-ip-resolution)

Allows resolving current visitor IP address.

Configuration
-------------

[](#configuration)

Package is usable as-is:

```
use Jmf\VisitorIpResolution\VisitorIpV4Resolver;

$resolver = new VisitorIpV4Resolver();

```

By default, visitor IP will be retrieved from `$_SERVER['REMOTE_ADDR']`. If you host your application behind a reverse proxy, you could need to specify another source, as such:

```
use Jmf\VisitorIpResolution\VisitorIpV4Resolver;

$resolver = new VisitorIpV4Resolver('HTTP_X_FORWARDED_FOR');

```

Usage
-----

[](#usage)

```
use Jmf\VisitorIpResolution\VisitorIpV4Resolver;

$resolver = new VisitorIpV4Resolver();

echo $resolver->resolve();

```

Will output something like:

```
123.45.6.7

```

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance71

Regular maintenance activity

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Every ~124 days

Recently: every ~155 days

Total

6

Last Release

162d ago

PHP version history (2 changes)1.0.0PHP &gt;=8.3

1.1.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/6b08b8105ec8bc88d1c911e10dbf156814769650a67960e2f3d71ed6d2417f0d?d=identicon)[jmfeurprier](/maintainers/jmfeurprier)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jmf-visitor-ip-resolution/health.svg)

```
[![Health](https://phpackages.com/badges/jmf-visitor-ip-resolution/health.svg)](https://phpackages.com/packages/jmf-visitor-ip-resolution)
```

###  Alternatives

[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5275.9M121](/packages/symplify-monorepo-builder)[phpactor/phpactor

PHP refactoring and intellisense tool for text editors

1.9k17.1k1](/packages/phpactor-phpactor)[phpdocumentor/reflection

Reflection library to do Static Analysis for PHP Projects

12525.9M148](/packages/phpdocumentor-reflection)[sylius/promotion

Flexible promotion management for PHP applications.

28505.6k15](/packages/sylius-promotion)[sylius/money-bundle

Currencies and money formatting engine bundle for Symfony.

19681.3k26](/packages/sylius-money-bundle)[sylius/product

Product catalog system with support for product options and variants.

24394.2k22](/packages/sylius-product)

PHPackages © 2026

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