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(3mo ago)1182MITPHPPHP ^8.3

Since May 10Pushed 3mo 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.1 Synced 1mo ago

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

42

—

FairBetter than 90% of packages

Maintenance79

Regular maintenance activity

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Every ~124 days

Recently: every ~155 days

Total

6

Last Release

110d 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 (3 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

[phpdocumentor/reflection-docblock

With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.

9.4k722.2M1.2k](/packages/phpdocumentor-reflection-docblock)[icanhazstring/composer-unused

Show unused packages by scanning your code

1.7k7.0M188](/packages/icanhazstring-composer-unused)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[phpdocumentor/reflection

Reflection library to do Static Analysis for PHP Projects

12521.4M109](/packages/phpdocumentor-reflection)[sylius/fixtures-bundle

Configurable fixtures for Symfony applications.

517.7M12](/packages/sylius-fixtures-bundle)[sylius/promotion

Flexible promotion management for PHP applications.

28477.8k9](/packages/sylius-promotion)

PHPackages © 2026

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