PHPackages                             villaflor/laravel-ip-address - 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. villaflor/laravel-ip-address

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

villaflor/laravel-ip-address
============================

A Laravel library for retrieving accurate public IP address of the server.

1.0.3(5y ago)059MITPHPPHP ^7.3|^8.0

Since Nov 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/villaflor/laravel-ip-address)[ Packagist](https://packagist.org/packages/villaflor/laravel-ip-address)[ Docs](https://github.com/villaflor/laravel-ip-address)[ RSS](/packages/villaflor-laravel-ip-address/feed)WikiDiscussions main Synced 2mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

IpAddress
=========

[](#ipaddress)

A light and simple library to obtain the server's public IP Address. This library is useful in updating your DNS target server IP Address if you are using a dynamic IP Address in hosting your server.

 [ ![](https://camo.githubusercontent.com/ed093120d7e0e06dd76a678303f033efa291dd36536e0b327e142d6263fa253b/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f76696c6c61666c6f722f6c61726176656c2d69702d616464726573732e7376673f7374796c653d666c6174) ](https://travis-ci.org/github/villaflor/laravel-ip-address) [ ![](https://camo.githubusercontent.com/c8b2f9d249f940e9d680214984b6cb095fe62e20affdeb37d2d7d1aa18689212/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f76696c6c61666c6f722f6c61726176656c2d69702d616464726573732e7376673f7374796c653d666c6174) ](https://github.com/villaflor/laravel-ip-address/blob/main/LICENSE) [ ![](https://camo.githubusercontent.com/7801b377cf3560484cc2d3e0124da24037b0bf5df421e966aeecef8713b3c235/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f76696c6c61666c6f722f6c61726176656c2d69702d61646472657373) ](https://travis-ci.org/github/villaflor/laravel-ip-address) [ ![](https://camo.githubusercontent.com/a22a7a4fb3c4d9b9c6a74d991f8628ad13ea51f7ec159122f018f25677bb0f73/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f76696c6c61666c6f722f6c61726176656c2d69702d61646472657373) ](https://packagist.org/packages/villaflor/laravel-ip-address)

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

[](#installation)

```
composer require villaflor/laravel-ip-address
```

Usage
-----

[](#usage)

It is very easy to use this library. Here is an example of printing the public IP Address of a server.

```
use Villaflor\IpAddress\IpAddress;

public function printPublicIpAddress(): void
{
    $publicIp = IpAddress::getPublicIp();

    echo $publicIp;
}
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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 ~29 days

Total

4

Last Release

1908d ago

PHP version history (2 changes)1.0.0PHP ^7.3

1.0.1PHP ^7.3|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/60b659450734f21a7a920500011a61a9996cb5112cf18a05bf8131916167e50a?d=identicon)[villaflor](/maintainers/villaflor)

---

Top Contributors

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

---

Tags

laraveladdressIP

### Embed Badge

![Health badge](/badges/villaflor-laravel-ip-address/health.svg)

```
[![Health](https://phpackages.com/badges/villaflor-laravel-ip-address/health.svg)](https://phpackages.com/packages/villaflor-laravel-ip-address)
```

###  Alternatives

[pragmarx/zipcode

A worldwide address-by-zipcode searcher.

10265.4k](/packages/pragmarx-zipcode)[tapp/filament-google-autocomplete-field

Filament plugin that provides a Google Autocomplete field

3098.1k](/packages/tapp-filament-google-autocomplete-field)[yieldstudio/nova-google-autocomplete

A Laravel Nova Google autocomplete field.

12218.4k](/packages/yieldstudio-nova-google-autocomplete)

PHPackages © 2026

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