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(6mo ago)0211MITPHPPHP ^8.3CI passing

Since May 10Pushed 6mo 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 2w 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

39

—

LowBetter than 84% of packages

Maintenance66

Regular maintenance activity

Popularity11

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

207d 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.

5266.1M138](/packages/symplify-monorepo-builder)[phpactor/phpactor

PHP refactoring and intellisense tool for text editors

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

Reflection library to do Static Analysis for PHP Projects

12526.9M158](/packages/phpdocumentor-reflection)[veewee/xml

XML without worries

1837.3M39](/packages/veewee-xml)[ssch/typo3-encore

Use Webpack Encore in TYPO3 Context

107502.3k4](/packages/ssch-typo3-encore)[sylius/promotion

Flexible promotion management for PHP applications.

28515.1k15](/packages/sylius-promotion)

PHPackages © 2026

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