PHPackages                             devworkout/laravel-user-ips - 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. devworkout/laravel-user-ips

ActiveLibrary

devworkout/laravel-user-ips
===========================

064PHP

Since Feb 3Pushed 3y agoCompare

[ Source](https://github.com/devworkout/laravel-user-ips)[ Packagist](https://packagist.org/packages/devworkout/laravel-user-ips)[ RSS](/packages/devworkout-laravel-user-ips/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel User IPs
================

[](#laravel-user-ips)

Remember and track IPs of Laravel users.

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

[](#installation)

You can install the package via composer:

```
composer require devworkout/laravel-user-ips
```

Usage
-----

[](#usage)

Add a HasIPs trait to your User model:

```
use \DevWorkout\UserIps\HasIPs;
```

Associate IP with user:

```
$user->rememberIP('127.0.0.1');
```

Get a list of associated IPs:

```
$ips = $user->ips()->pluck('ip');
```

Find IPs used by multiple users:

```
$ips = UserIP::withMultipleUsers()->get();
```

Find users using this IP:

```
$users = $ip->users();
```

#### Automatic IP recording

[](#automatic-ip-recording)

Automatic IP recording is enabled on login.

### Testing

[](#testing)

```
composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email us instead of using the issue tracker.

Credits
-------

[](#credits)

- [devworkout](https://github.com/devworkout)
- [All Contributors](../../contributors)

Support us
----------

[](#support-us)

Give us a star!

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8dc28970580d50f2b4bb813e767ed7b0eefd6481037cd83ebc97ca63a7dae95b?d=identicon)[librevlad](/maintainers/librevlad)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/devworkout-laravel-user-ips/health.svg)

```
[![Health](https://phpackages.com/badges/devworkout-laravel-user-ips/health.svg)](https://phpackages.com/packages/devworkout-laravel-user-ips)
```

PHPackages © 2026

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